home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / demos / gpc / stopwatch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-15  |  1.7 KB  |  59 lines

  1. /* $XConsortium: stopwatch.h,v 5.1 91/02/16 10:07:53 rws Exp $ */
  2.  
  3. /*
  4.  */
  5.  
  6. /*--------------------------------------------------------------------*\
  7. |
  8. |  Copyright (C) 1989,1990, 1991, National Computer Graphics Association
  9. |
  10. |  Permission is granted to any individual or institution to use, copy, or
  11. |  redistribute this software so long as it is not sold for profit, provided
  12. |  this copyright notice is retained.
  13. |
  14. |                         Developed for the
  15. |                National Computer Graphics Association
  16. |                         2722 Merrilee Drive
  17. |                         Fairfax, VA  22031
  18. |                           (703) 698-9600
  19. |
  20. |                                by
  21. |                 SimGraphics Engineering Corporation
  22. |                    1137 Huntington Drive  Unit A
  23. |                      South Pasadena, CA  91030
  24. |                           (213) 255-0900
  25. |---------------------------------------------------------------------
  26. |
  27. | Author        :    jmz / SimGraphics Engineering Corportation
  28. |
  29. | File          :    stopwatch.h
  30. | Date          :    8/22/89
  31. | Project       :    PLB
  32. | Description   :    Stopwatch type and constant definitions.
  33. | Status        :    Version 1.0
  34. |
  35. | Revisions     :    
  36. |
  37. \*--------------------------------------------------------------------*/
  38.  
  39. /* Define the Options for the stopwatch routine */
  40.  
  41. /* Stop the watch if running.  */
  42. /* Return last stopped time */
  43. #define WATCH_STOP    0
  44.  
  45. /* Start the watch if stopped */
  46. /* Return current time */
  47. #define WATCH_START    1
  48.  
  49. /* Return current time */
  50. #define WATCH_SPLIT    2
  51.  
  52. /* Reset current time to zero, does NOT start or stop the watch */
  53. #define WATCH_RESET    3
  54.  
  55. /* Return the accuracy of the watch */
  56. #define WATCH_PRECISION    4
  57.  
  58. float stopwatch();
  59.