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