lib/bumbler/hooks.rb in bumbler-0.1.1 vs lib/bumbler/hooks.rb in bumbler-0.1.2

- old
+ new

@@ -52,9 +52,14 @@ # Shortcut unless we're tracking the gem gem_name = Bumbler::Bundler.gem_for_require(path) return yield unless gem_name + # Track load starts + @previous_gems ||= {} + Bumbler::Bundler.require_started(path) unless @previous_gems[gem_name] + @previous_gems[gem_name] = true + # Let's time them start = Time.now.to_f result = yield require_time = (Time.now.to_f - start) * 1000 # ms