summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-15 06:00:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-15 06:00:30 +0000
commit9e14de667295230e902479889a4610885cb254cf (patch)
tree5cd9ec18d5f68c4092ffb4b29004289bd9fad895 /sample
parent0f0f5201e4fb4de44374e9f0161f7f5ae35953a0 (diff)
downloadruby-9e14de667295230e902479889a4610885cb254cf.tar.gz
ruby-9e14de667295230e902479889a4610885cb254cf.tar.xz
ruby-9e14de667295230e902479889a4610885cb254cf.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/time.rb b/sample/time.rb
index f4f4ec488..1624fdf99 100644
--- a/sample/time.rb
+++ b/sample/time.rb
@@ -3,6 +3,6 @@ cmd = ARGV.join(" ")
b = Time.now
system(cmd)
e = Time.now
-ut, st, cut, cst = Time.times
+ut, st, cut, cst = Time.times.to_a
total = (e - b).to_f
printf STDERR, "%11.1f real %11.1f user %11.1f sys\n", total, cut, cst