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_