log: Remove unused `_POSIX_TIMERS` branch in `PerformanceTimer::query()`.

This commit is contained in:
Alberto Gonzalez 2020-06-10 18:21:07 +00:00
parent a564cc806f
commit 28c2dd470b
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 0 additions and 4 deletions

View File

@ -308,10 +308,6 @@ struct PerformanceTimer
static int64_t query() {
# ifdef _WIN32
return 0;
# elif defined(_POSIX_TIMERS) && (_POSIX_TIMERS > 0)
struct timespec ts;
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
return int64_t(ts.tv_sec)*1000000000 + ts.tv_nsec;
# elif defined(RUSAGE_SELF)
struct rusage rusage;
int64_t t = 0;