lib/vedeu/support/timer.rb in vedeu-0.4.32 vs lib/vedeu/support/timer.rb in vedeu-0.4.33

- old
+ new

@@ -1,8 +1,10 @@ module Vedeu # Measure the duration. Used for debugging. + # + # @api public class Timer class << self # @param message [String] @@ -19,10 +21,9 @@ def initialize(message = '') @message = message @started = Time.now.to_f end - # @param block [Proc] # @return [void] def measure work = yield elapsed = ((Time.now.to_f - started) * 1000).round(3)