From 3209bb950b07e80a5c32f68e445718be03eb44f0 Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Thu, 26 Sep 2024 23:37:36 -0400 Subject: [ruby/benchmark] Specify unit of time for Benchmark.realtime https://github.com/ruby/benchmark/commit/388236685c --- lib/benchmark.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 9f43255e42..b2c8df0347 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -307,6 +307,7 @@ module Benchmark # # 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) -- cgit v1.2.3