Open chewr opened 6 years ago
The NilTimer implements the Timer's Time(func()) method but does so as a noop. In order to preserve behavior for callers which use this method and rely on the argument being executed, the NilTimer should execute the function that is passed to it.
Time(func())
NilTimer
https://github.com/rcrowley/go-metrics/blob/master/timer.go#L129
this repository is dead ? or why the fix is still not on master ?
The NilTimer implements the Timer's
Time(func())
method but does so as a noop. In order to preserve behavior for callers which use this method and rely on the argument being executed, theNilTimer
should execute the function that is passed to it.https://github.com/rcrowley/go-metrics/blob/master/timer.go#L129