summaryrefslogtreecommitdiff
path: root/lib/benchmark.rb
diff options
context:
space:
mode:
authorNithin Bekal <[email protected]>2024-09-26 23:37:36 -0400
committergit <[email protected]>2024-09-27 04:31:47 +0000
commit3209bb950b07e80a5c32f68e445718be03eb44f0 ()
treebf6959fc918320403c5c9b32d784ccb60ba24cba /lib/benchmark.rb
parentdc8fa59fb0f1844bb6c44ccba5982b9253f56da0 (diff)
[ruby/benchmark] Specify unit of time for Benchmark.realtime
https://.com/ruby/benchmark/commit/388236685c
-rw-r--r--lib/benchmark.rb1
1 files changed, 1 insertions, 0 deletions
@@ -307,6 +307,7 @@ module Benchmark
#
# Returns the elapsed real time used to execute the given block.
#
def realtime # :yield:
r0 = Process.clock_gettime(Process::CLOCK_MONOTONIC)