lib/metricize/client.rb in metricize-0.5.4 vs lib/metricize/client.rb in metricize-0.5.6
- old
+ new
@@ -20,10 +20,10 @@
def time(name, options = {})
raise ArgumentError, "must be invoked with a block to time" unless block_given?
start_time = Time.now
block_result = yield
- measure(name + '.time', time_delta_ms(start_time))
+ measure(name + '.time', time_delta_ms(start_time), options)
return block_result
end
private