diff --git a/harness/harness.rb b/harness/harness.rb index f8f3ccc0..0aece30b 100644 --- a/harness/harness.rb +++ b/harness/harness.rb @@ -13,9 +13,9 @@ # Time one iteration of a benchmark def time_itr - start_time = Time.now.to_f + start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) yield - end_time = Time.now.to_f + end_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) delta_time = end_time - start_time return delta_time end