28 #if defined(WIN32) && !defined(MSDOS) 43 #if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600) 44 ULONGLONG milliseconds = GetTickCount64();
46 DWORD milliseconds = GetTickCount();
53 #elif defined(HAVE_CLOCK_GETTIME_MONOTONIC) 65 struct timespec tsnow;
66 if(0 == clock_gettime(CLOCK_MONOTONIC, &tsnow)) {
75 #ifdef HAVE_GETTIMEOFDAY 77 (
void)gettimeofday(&
now, NULL);
87 #elif defined(HAVE_GETTIMEOFDAY) 97 (void)gettimeofday(&
now, NULL);
109 now.
tv_sec = (long)time(NULL);