File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
# benchmark.rb
3
3
#
4
4
=begin
5
+ 2002-04-25: bmbm(): killed unused parameter @fmtstr (gotoken)
5
6
2001-11-26: Time.times renamed Process.times for ruby17 (gotoken#notwork.org)
6
7
2001-01-12: made bmbm module func. bmbm return Tms array.
7
8
2001-01-10: added bmbm, Job and INSTALL.rb (gotoken#notwork.org)
@@ -439,7 +440,7 @@ def file
439
440
=end
440
441
441
442
module Benchmark
442
- BENCHMARK_VERSION = "2001-11-26 "
443
+ BENCHMARK_VERSION = "2002-04-25 "
443
444
444
445
def Benchmark ::times ( )
445
446
Process ::times ( )
@@ -478,7 +479,7 @@ def bmbm(width = 0, &blk)
478
479
job . list . each { |label , item |
479
480
print ( label . ljust ( width ) )
480
481
res = Benchmark ::measure ( &item )
481
- print res . format ( @fmtstr )
482
+ print res . format ( )
482
483
list . push res
483
484
}
484
485
sum = Tms . new ; list . each { |i | sum += i }
@@ -494,7 +495,7 @@ def bmbm(width = 0, &blk)
494
495
GC ::start
495
496
print label . ljust ( width )
496
497
res = Benchmark ::measure ( &item )
497
- print res . format ( @fmtstr )
498
+ print res . format ( )
498
499
ary . push res
499
500
list . push [ label , res ]
500
501
}
You can’t perform that action at this time.
0 commit comments