2 #error "Use this header only with Microsoft Visual C++ compilers!" 5 #ifndef _MSC_SYS_TIME_H_ 6 #define _MSC_SYS_TIME_H_ 16 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) 17 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 19 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL 43 unsigned __int64 tmpres = 0;
47 GetSystemTimeAsFileTime(&ft);
49 tmpres |= ft.dwHighDateTime;
51 tmpres |= ft.dwLowDateTime;
55 tv->tv_sec = (long)(tmpres / 1000000UL);
56 tv->tv_usec = (long)(tmpres % 1000000UL);
71 #endif //_MSC_SYS_TIME_H_ int tz_dsttime
Definition: time.h:37
static int gettimeofday(struct timeval *tv, struct timezone *tz)
Definition: time.h:40
time_t tv_sec
Definition: time.h:25
long tv_nsec
Definition: time.h:29
#define DELTA_EPOCH_IN_MICROSECS
Definition: time.h:19
int tz_minuteswest
Definition: time.h:36