mirror of https://github.com/YosysHQ/yosys.git
log: Remove unused `_POSIX_TIMERS` branch in `PerformanceTimer::query()`.
This commit is contained in:
parent
a564cc806f
commit
28c2dd470b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue