summaryrefslogtreecommitdiffstats
path: root/sample/time.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-19 20:56:37 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-19 20:56:37 +0000
commit6f07df121006daeb3347426a35df432d6927f6bb (patch)
treef322774139b892603c027ac385f2d6e73852ca77 /sample/time.rb
parent2c917203b7a4a53cb9685ba387ab9231261e5098 (diff)
downloadruby-6f07df121006daeb3347426a35df432d6927f6bb.tar.gz
ruby-6f07df121006daeb3347426a35df432d6927f6bb.tar.xz
ruby-6f07df121006daeb3347426a35df432d6927f6bb.zip
Improve.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/time.rb')
-rw-r--r--sample/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/time.rb b/sample/time.rb
index 1624fdf99..84fa9e1a8 100644
--- a/sample/time.rb
+++ b/sample/time.rb
@@ -5,4 +5,4 @@ system(cmd)
e = Time.now
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
+STDERR.printf "%11.1f real %11.1f user %11.1f sys\n", total, cut, cst