diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/benchmark.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 9a0bbef596..8e7f778e2d 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -440,7 +440,7 @@ module Benchmark # # An in-place version of #add. # - def add! + def add!(&blk) t = Benchmark::measure(&blk) @utime = utime + t.utime @stime = stime + t.stime |