mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 01:20:52 +00: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