Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions harness/harness.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down