Skip to content

Commit

Permalink
Use per-thread CPU time clock
Browse files Browse the repository at this point in the history
Fixes #37441.
  • Loading branch information
georgeclaghorn committed Nov 16, 2019
1 parent d53ae9f commit 0454d2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def now

if clock_gettime_supported?
def now_cpu
Process.clock_gettime(Process::CLOCK_PROCESS_CPUTIME_ID)
Process.clock_gettime(Process::CLOCK_THREAD_CPUTIME_ID)
end
else
def now_cpu
Expand Down

0 comments on commit 0454d2c

Please sign in to comment.