Преглед изворни кода

return timeSpan from timers

to allow additional calculation
Brian Gough пре 10 година
родитељ
комит
622bbe3123
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      libraries/metrics/metrics.coffee

+ 1 - 0
libraries/metrics/metrics.coffee

@@ -35,6 +35,7 @@ module.exports =
 		done:->
 			timeSpan = new Date - this.start
 			statsd.timing(buildKey(this.key), timeSpan, this.sampleRate)
+			return timeSpan
 
 	gauge : (key, value, sampleRate = 1)->
 		statsd.gauge buildKey(key), value, sampleRate