repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
sample
/
time.rb
blob
e16912052ee819d6ffb3d777a31f06bf5bb4c95b
1
#! /usr/bin/env ruby
2
3
b = Time.now
4
system(*ARGV)
5
e = Time.now
6
7
tms = Process.times
8
real = e - b
9
user = tms.cutime
10
sys = tms.cstime
11
12
STDERR.printf("%11.1f real %11.1f user %11.1f sys\n", real, user, sys)