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_