gettimeofday.h 539 B

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