Skip to content

Commit 3882366

Browse files
committed
Specify unit of time for Benchmark.realtime
1 parent 0652906 commit 3882366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/benchmark.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def measure(label = "") # :yield:
307307

308308
#
309309
# Returns the elapsed real time used to execute the given block.
310+
# The unit of time is seconds.
310311
#
311312
def realtime # :yield:
312313
r0 = Process.clock_gettime(Process::CLOCK_MONOTONIC)

0 commit comments

Comments
 (0)