summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotoken <gotoken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-24 19:14:59 +0000
committergotoken <gotoken@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-24 19:14:59 +0000
commit1b8f663bfa3253cef4a9adeb5bda26e327daee2a (patch)
tree2a846d99eb324c4f29a6146044edd78945716528
parent19938071cca47b3430a3848b9b137927b325b80b (diff)
downloadruby-1b8f663bfa3253cef4a9adeb5bda26e327daee2a.tar.gz
ruby-1b8f663bfa3253cef4a9adeb5bda26e327daee2a.tar.xz
ruby-1b8f663bfa3253cef4a9adeb5bda26e327daee2a.zip
discarded unused parameter
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/benchmark.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/benchmark.rb b/lib/benchmark.rb
index e6c63a7c1..8237c0f3e 100644
--- a/lib/benchmark.rb
+++ b/lib/benchmark.rb
@@ -2,6 +2,7 @@
# benchmark.rb
#
=begin
+ 2002-04-25: bmbm(): killed unused parameter @fmtstr (gotoken)
2001-11-26: Time.times renamed Process.times for ruby17 (gotoken#notwork.org)
2001-01-12: made bmbm module func. bmbm return Tms array.
2001-01-10: added bmbm, Job and INSTALL.rb (gotoken#notwork.org)
@@ -439,7 +440,7 @@ Gotoken (gotoken@notwork.org).
=end
module Benchmark
- BENCHMARK_VERSION = "2001-11-26"
+ BENCHMARK_VERSION = "2002-04-25"
def Benchmark::times()
Process::times()
@@ -478,7 +479,7 @@ module Benchmark
job.list.each{|label,item|
print(label.ljust(width))
res = Benchmark::measure(&item)
- print res.format(@fmtstr)
+ print res.format()
list.push res
}
sum = Tms.new; list.each{|i| sum += i}
@@ -494,7 +495,7 @@ module Benchmark
GC::start
print label.ljust(width)
res = Benchmark::measure(&item)
- print res.format(@fmtstr)
+ print res.format()
ary.push res
list.push [label, res]
}