projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a564cc8
)
log: Remove unused `_POSIX_TIMERS` branch in `PerformanceTimer::query()`.
author
Alberto Gonzalez
<boqwxp@airmail.cc>
Wed, 10 Jun 2020 18:21:07 +0000
(18:21 +0000)
committer
Alberto Gonzalez
<boqwxp@airmail.cc>
Sun, 21 Jun 2020 02:16:52 +0000
(
02:16
+0000)
kernel/log.h
patch
|
blob
|
history
diff --git
a/kernel/log.h
b/kernel/log.h
index d8e748ff8f770c7270a907fceb6b94233699c2a2..5986e0075c27977cf3e4a31b02f93c8554472d54 100644
(file)
--- 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;