mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/transcode-tblgen.rb: show cosumed time at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0884036a0a
commit
7553fd299e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Mar 13 03:24:15 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* tool/transcode-tblgen.rb: show cosumed time at last.
|
||||
|
||||
Sat Mar 13 00:44:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_file_s_basename): check encoding of suffix.
|
||||
|
|
|
@ -773,6 +773,8 @@ def make_signature(filename, src)
|
|||
end
|
||||
|
||||
if __FILE__ == $0
|
||||
start_time = Time.now
|
||||
|
||||
output_filename = nil
|
||||
verbose_mode = false
|
||||
force_mode = false
|
||||
|
@ -861,7 +863,9 @@ if __FILE__ == $0
|
|||
FileUtils.mkdir_p(File.dirname(output_filename))
|
||||
File.open(new_filename, "wb") {|f| f << result }
|
||||
File.rename(new_filename, output_filename)
|
||||
STDERR.puts "done." if VERBOSE_MODE
|
||||
tms = Process.times
|
||||
elapsed = Time.now - start_time
|
||||
STDERR.puts "done. (#{'%.2f' % tms.utime}user #{'%.2f' % tms.stime}system #{'%.2f' % elapsed}elapsed)" if VERBOSE_MODE
|
||||
else
|
||||
print result
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue