diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-15 06:00:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-15 06:00:30 +0000 |
commit | bbf2ad4ed8a142c5fba8b5e56293006b359f9b18 (patch) | |
tree | 5cd9ec18d5f68c4092ffb4b29004289bd9fad895 /sample/time.rb | |
parent | f57e5b0dc61aab42d2913029080d7e93cc75f71a (diff) | |
download | ruby-bbf2ad4ed8a142c5fba8b5e56293006b359f9b18.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/time.rb')
-rw-r--r-- | sample/time.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/time.rb b/sample/time.rb index f4f4ec4883..1624fdf992 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 |