mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
return timeSpan from timers
to allow additional calculation
This commit is contained in:
parent
29177f8de8
commit
622bbe3123
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue