summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
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