* transcode.c (econv_init): accept Encoding object as source_encoding
[ruby-svn.git] / sample / time.rb
blobe16912052ee819d6ffb3d777a31f06bf5bb4c95b
1 #! /usr/bin/env ruby
3 b = Time.now
4 system(*ARGV)
5 e = Time.now
7 tms = Process.times
8 real = e - b
9 user = tms.cutime
10 sys = tms.cstime
12 STDERR.printf("%11.1f real %11.1f user %11.1f sys\n", real, user, sys)