Skip to content

Commit

Permalink
Specify unit of time for Benchmark.realtime
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinbekal committed Sep 27, 2024
1 parent 0652906 commit 3882366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def measure(label = "") # :yield:

#
# Returns the elapsed real time used to execute the given block.
# The unit of time is seconds.
#
def realtime # :yield:
r0 = Process.clock_gettime(Process::CLOCK_MONOTONIC)
Expand Down

0 comments on commit 3882366

Please sign in to comment.