9 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) 10 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 12 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL 21 inline int gettimeofday(
struct timeval *tv,
struct timezone *tz)
24 unsigned __int64 tmpres = 0;
29 GetSystemTimeAsFileTime(&ft);
31 tmpres |= ft.dwHighDateTime;
33 tmpres |= ft.dwLowDateTime;
36 tmpres -= DELTA_EPOCH_IN_MICROSECS;
38 tv->tv_sec = (int64_t)(tmpres / 1000000UL);
39 tv->tv_usec = (int64_t)(tmpres % 1000000UL);
49 tz->tz_minuteswest = _timezone / 60;
50 tz->tz_dsttime = _daylight;
61 #endif // PZ_GETTIME_H