summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/benchmark.rb1
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)