Permalink
Browse files

add timing info

  • Loading branch information...
1 parent e289d71 commit 322fac3bc69097e033fb43659e3d7dc11466671b @alexch alexch committed Jul 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rubygems/dependency_installer.rb
@@ -373,10 +373,12 @@ def install dep_or_name, version = Gem::Requirement.default
# it's documentation. Ideally the hook adder could decide whether to be in
# the background or not, and what to call it.
in_background "Installing documentation" do
+ start = Time.now
Gem.done_installing_hooks.each do |hook|
hook.call self, @installed_gems
end
- puts "Done installing documentation for #{@installed_gems.map(&:name).join(', ')}."
+ finish = Time.now
+ puts "Done installing documentation for #{@installed_gems.map(&:name).join(', ')} (#{(finish-start).to_i} sec)."
end unless Gem.done_installing_hooks.empty?
@installed_gems

0 comments on commit 322fac3

Please sign in to comment.