home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hsys.z / timeb.h < prev    next >
C/C++ Source or Header  |  1996-11-06  |  1KB  |  51 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. #if !defined(_ENABLE_AUTODEPEND)
  9.   #pragma read_only_file;
  10. #endif
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15. #ifndef _COMDEF_H_INCLUDED
  16.  #include <_comdef.h>
  17. #endif
  18.  
  19. #ifndef _TIME_T_DEFINED
  20. #define _TIME_T_DEFINED
  21. #define _TIME_T_DEFINED_
  22. typedef unsigned long time_t; /* time value */
  23. #endif
  24.  
  25. #if defined(_M_IX86)
  26.   #pragma pack(__push,1);
  27. #else
  28.   #pragma pack(__push,8);
  29. #endif
  30. struct timeb {
  31.     time_t        time;        /* seconds since Jan 1, 1970 UTC */
  32.     unsigned short     millitm;    /* milliseconds */
  33.     short        timezone;    /* difference in minutes from UTC */
  34.     short        dstflag;    /* nonzero if daylight savings time */
  35. };
  36. struct _timeb {
  37.     time_t        time;        /* seconds since Jan 1, 1970 UTC */
  38.     unsigned short     millitm;    /* milliseconds */
  39.     short        timezone;    /* difference in minutes from UTC */
  40.     short        dstflag;    /* nonzero if daylight savings time */
  41. };
  42. #pragma pack(__pop);
  43.  
  44. _WCRTLINK extern int ftime( struct timeb *__timeptr );
  45. _WCRTLINK extern int _ftime( struct _timeb *__timeptr );
  46.  
  47. #ifdef __cplusplus
  48. };
  49. #endif
  50. #endif
  51.