gettimeofday.h 521 B

1234567891011121314151617181920212223242526
  1. #ifndef _GET_TIME_OF_DAY_H
  2. #define _GET_TIME_OF_DAY_H
  3. #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
  4. #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
  5. #else
  6. #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
  7. #endif
  8. #ifdef LWS_MINGW_SUPPORT
  9. #include <winsock2.h>
  10. #endif
  11. #ifndef _TIMEZONE_DEFINED
  12. struct timezone
  13. {
  14. int tz_minuteswest; /* minutes W of Greenwich */
  15. int tz_dsttime; /* type of dst correction */
  16. };
  17. int gettimeofday(struct timeval *tv, struct timezone *tz);
  18. #endif
  19. #endif