Skip to content

Commit

Permalink
* tool/transcode-tblgen.rb: show cosumed time at last.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Mar 12, 2010
1 parent 0884036 commit 7553fd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Mar 13 03:24:15 2010 Tanaka Akira <[email protected]>

* tool/transcode-tblgen.rb: show cosumed time at last.

Sat Mar 13 00:44:20 2010 Nobuyoshi Nakada <[email protected]>

* file.c (rb_file_s_basename): check encoding of suffix.
Expand Down
6 changes: 5 additions & 1 deletion tool/transcode-tblgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -861,7 +863,9 @@ def make_signature(filename, src)
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
Expand Down

0 comments on commit 7553fd2

Please sign in to comment.