home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / sys / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  509 b   |  25 lines

  1.  
  2. /*
  3.  * $VER: sys/time.h 1.0 (17.4.93)
  4.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  5.  */
  6.  
  7. #ifndef SYS_TIME_H
  8. #define SYS_TIME_H
  9.  
  10. #include <time.h>
  11.  
  12. struct timeval {
  13.  unsigned long tv_sec;
  14.  unsigned long tv_usec;
  15. };
  16.  
  17. #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
  18. #define timercmp(tvp, uvp, cmp) \
  19.  ((tvp)->tv_sec cmp (uvp)->tv_sec || \
  20.  (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
  21. #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
  22.  
  23. #endif
  24.  
  25.