home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / zen / ztimer / ztimer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-27  |  2.1 KB  |  83 lines

  1. /****************************************************************************
  2. *
  3. *                           The Zen Timer Library
  4. *
  5. *                               From the book
  6. *                         "Zen of Assembly Language"
  7. *                            Volume 1, Knowledge
  8. *
  9. *                             by Michael Abrash
  10. *
  11. *                      Modifications by Kendall Bennett
  12. *
  13. * Filename:        $RCSfile: ztimer.h $
  14. * Version:        $Revision: 1.5 $
  15. *
  16. * Language:        ANSI C
  17. * Environment:    IBM PC (MS DOS)
  18. *
  19. * Description:    Header file for the Zen Timer library. Provides a number
  20. *                of routines to accurately time segments of code. A
  21. *                precision timer is provided for highly accurate timing of
  22. *                code that takes less than 54 ms to execute, and a long
  23. *                period timer is provided to time code that takes up to
  24. *                one hour to execute. All output is in microseconds.
  25. *
  26. * $Id: ztimer.h 1.5 92/01/27 21:40:01 kjb release $
  27. *
  28. * Revision History:
  29. * -----------------
  30. *
  31. * $Log:    ztimer.h $
  32. * Revision 1.5  92/01/27  21:40:01  kjb
  33. * Converted to a memory model independant library, and released to the
  34. * public.,
  35. * Revision 1.4  91/12/31  19:34:51  kjb
  36. * Changed include file directories.
  37. * Revision 1.3  91/12/26  17:56:38  kjb
  38. * Added dependency on DEBUG.H
  39. * Revision 1.2  91/11/16  17:12:20  kjb
  40. * Modified to return a long integer representing the count rather than a 
  41. * string.
  42. * Revision 1.1  91/11/14  17:19:58  kjb
  43. * Initial revision
  44. ****************************************************************************/
  45.  
  46. #ifndef    __ZTIMER_H
  47. #define    __ZTIMER_H
  48.  
  49. #ifndef __DEBUG_H
  50. #include "debug.h"
  51. #endif
  52.  
  53. /*-------------------------- Function Prototypes --------------------------*/
  54.  
  55. #ifdef    __cplusplus
  56. extern "C" {            /* Use "C" linkage when in C++ mode    */
  57. #endif
  58.  
  59. /* Precision timing routines in PZTIMER.ASM */
  60.  
  61. void    far PZTimerOn(void);
  62. void    far PZTimerOff(void);
  63. void    far PZTimerReport(void);
  64. ulong    far PZTimerCount(void);
  65.  
  66. /* Long period timing routines in LZTIMER.ASM */
  67.  
  68. void     far LZTimerOn(void);
  69. void     far LZTimerOff(void);
  70. void     far LZTimerReport(void);
  71. ulong     far LZTimerCount(void);
  72.  
  73. #ifdef    __cplusplus
  74. }                        /* End of "C" linkage for C++    */
  75. #endif
  76.  
  77. #endif    __ZTIMER_H
  78.