home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / stack16 / sys / time.h < prev    next >
C/C++ Source or Header  |  1999-05-11  |  753b  |  32 lines

  1. #ifndef _TIMEVAL
  2. #define _TIMEVAL
  3.  
  4. #ifdef __BORLANDC__           /* DRC01 - changed _System to _syscall */
  5. #ifndef _System               /* DRC01 */
  6. #define _System _syscall      /* DRC01 */
  7. #endif                        /* DRC01 */
  8. #endif                        /* DRC01 */
  9.  
  10. #ifdef __HIGHC__              /* DRC02 - changed _System */
  11. #define _System               /* DRC02 */
  12. #endif                        /* DRC02 */
  13.  
  14. struct timeval {
  15.       unsigned long  tv_sec;
  16.       unsigned long  tv_usec;
  17. };
  18.  
  19. struct timezone {
  20.   unsigned short tmz;
  21. };
  22.  
  23. struct itimerval {
  24.       struct timeval it_interval;
  25.       struct timeval it_value;
  26. };
  27.  
  28. int _System gettimeofday (struct timeval *, struct timezone *);
  29.  
  30. #endif  /* _TIMEVAL */
  31.  
  32.