From 28c2dd470b085f0be83ce1c55a687638bb31a75d Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Wed, 10 Jun 2020 18:21:07 +0000 Subject: [PATCH] log: Remove unused `_POSIX_TIMERS` branch in `PerformanceTimer::query()`. --- kernel/log.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/log.h b/kernel/log.h index d8e748ff8..5986e0075 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -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; -- 2.30.2