mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/benchmark.rb (Benchmark::Tms#add): fix NameError.
[ruby-dev:40906] * test/benchmark/test_benchmark.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb86567b69
commit
fe0aab0911
3 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue