home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  809 b   |  33 lines

  1. #ifndef _INLINE_TIMER_H
  2. #define _INLINE_TIMER_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef TIMER_BASE_NAME
  9. #define TIMER_BASE_NAME TimerBase
  10. #endif
  11.  
  12. #define AddTime(dest, src) \
  13.     LP2NR(0x2a, AddTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  14.     , TIMER_BASE_NAME)
  15.  
  16. #define CmpTime(dest, src) \
  17.     LP2(0x36, LONG, CmpTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  18.     , TIMER_BASE_NAME)
  19.  
  20. #define GetSysTime(dest) \
  21.     LP1NR(0x42, GetSysTime, struct timeval *, dest, a0, \
  22.     , TIMER_BASE_NAME)
  23.  
  24. #define ReadEClock(dest) \
  25.     LP1(0x3c, ULONG, ReadEClock, struct EClockVal *, dest, a0, \
  26.     , TIMER_BASE_NAME)
  27.  
  28. #define SubTime(dest, src) \
  29.     LP2NR(0x30, SubTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  30.     , TIMER_BASE_NAME)
  31.  
  32. #endif /* _INLINE_TIMER_H */
  33.