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 45 unsigned __int64 tmpres = 0;
50 GetSystemTimeAsFileTime(&ft);
52 tmpres |= ft.dwHighDateTime;
54 tmpres |= ft.dwLowDateTime;
58 tv->tv_sec = (long)(tmpres / 1000000UL);
59 tv->tv_usec = (long)(tmpres % 1000000UL);
76 #endif //_MSC_SYS_TIME_H_ int tz_dsttime
Definition: time.h:39
static int gettimeofday(struct timeval *tv, struct timezone *tz)
Definition: time.h:42
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:38