home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hsys.z / timeb.h < prev    next >
C/C++ Source or Header  |  1996-07-24  |  898b  |  41 lines

  1. /*
  2.  *  sys/timeb.h     timeb structure used with ftime()
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5.  */
  6. #ifndef __TIMEB_H_INCLUDED
  7. #define __TIMEB_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #ifndef _TIME_T_DEFINED
  17. #define _TIME_T_DEFINED
  18. #define _TIME_T_DEFINED_
  19. typedef unsigned long time_t; /* time value */
  20. #endif
  21.  
  22. #if defined(_M_IX86)
  23.   #pragma pack(__push,1);
  24. #else
  25.   #pragma pack(__push,8);
  26. #endif
  27. struct timeb {
  28.     time_t        time;        /* seconds since Jan 1, 1970 UTC */
  29.     unsigned short     millitm;    /* milliseconds */
  30.     short        timezone;    /* difference in minutes from UTC */
  31.     short        dstflag;    /* nonzero if daylight savings time */
  32. };
  33. #pragma pack(__pop);
  34.  
  35. _WCRTLINK extern int ftime( struct timeb *__timeptr );
  36.  
  37. #ifdef __cplusplus
  38. };
  39. #endif
  40. #endif
  41.