1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use per-thread CPU time clock

Fixes #37441.
This commit is contained in:
George Claghorn 2019-11-15 21:13:47 -05:00
parent d53ae9fdbb
commit 0454d2cca9

View file

@ -143,7 +143,7 @@ module ActiveSupport
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