2 #error "Use this header only with Microsoft Visual C++ compilers!"
5 #ifndef _MSC_SYS_TIME_H_
6 #define _MSC_SYS_TIME_H_
11 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
12 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
14 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
38 unsigned __int64 tmpres = 0;
43 GetSystemTimeAsFileTime(&ft);
45 tmpres |= ft.dwHighDateTime;
47 tmpres |= ft.dwLowDateTime;
51 tv->tv_sec = (long)(tmpres / 1000000UL);
52 tv->tv_usec = (long)(tmpres % 1000000UL);
69 #endif //_MSC_SYS_TIME_H_