diff options
| author | Nithin Bekal <nithinbekal@gmail.com> | 2024-09-26 23:37:36 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-27 04:31:47 +0000 |
| commit | 3209bb950b07e80a5c32f68e445718be03eb44f0 (patch) | |
| tree | bf6959fc918320403c5c9b32d784ccb60ba24cba /lib | |
| parent | dc8fa59fb0f1844bb6c44ccba5982b9253f56da0 (diff) | |
[ruby/benchmark] Specify unit of time for Benchmark.realtime
https://github.com/ruby/benchmark/commit/388236685c
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/benchmark.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
