From 0dc342de848a642ecce8db697b8fecd83a63e117 Mon Sep 17 00:00:00 2001 From: yugui Date: Mon, 25 Aug 2008 15:02:05 +0000 Subject: added tag v1_9_0_4 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- trunk/sample/time.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 trunk/sample/time.rb (limited to 'trunk/sample/time.rb') diff --git a/trunk/sample/time.rb b/trunk/sample/time.rb new file mode 100644 index 0000000000..e16912052e --- /dev/null +++ b/trunk/sample/time.rb @@ -0,0 +1,12 @@ +#! /usr/bin/env ruby + +b = Time.now +system(*ARGV) +e = Time.now + +tms = Process.times +real = e - b +user = tms.cutime +sys = tms.cstime + +STDERR.printf("%11.1f real %11.1f user %11.1f sys\n", real, user, sys) -- cgit v1.2.3