15 #ifndef IMPALA_UTIL_TIME_H
16 #define IMPALA_UTIL_TIME_H
31 clock_gettime(CLOCK_MONOTONIC, &now);
32 return now.tv_sec * 1000000 + now.tv_nsec / 1000;
37 clock_gettime(CLOCK_MONOTONIC, &now);
38 return now.tv_sec * 1000 + now.tv_nsec / 1000000;
43 clock_gettime(CLOCK_MONOTONIC, &now);
53 clock_gettime(CLOCK_REALTIME, &now);
54 return now.tv_sec * 1000 + now.tv_nsec / 1000000;
void SleepForMs(const int64_t duration_ms)
Sleeps the current thread for at least duration_ms milliseconds.
int64_t MonotonicMillis()
int64_t MonotonicSeconds()
int64_t MonotonicMicros()