27 #if defined(WIN32) && !defined(MSDOS) 37 DWORD milliseconds = GetTickCount();
43 #elif defined(HAVE_CLOCK_GETTIME_MONOTONIC) 55 struct timespec tsnow;
56 if(0 == clock_gettime(CLOCK_MONOTONIC, &tsnow)) {
65 #ifdef HAVE_GETTIMEOFDAY 67 (
void)gettimeofday(&
now, NULL);
77 #elif defined(HAVE_GETTIMEOFDAY) 87 (void)gettimeofday(&
now, NULL);
99 now.
tv_sec = (long)time(NULL);
long tutil_tvdiff(struct timeval newer, struct timeval older)
double tutil_tvdiff_secs(struct timeval newer, struct timeval older)
struct timeval tutil_tvnow(void)