go-metrics
go-metrics copied to clipboard
NilTimer should execute function argument in Time
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.
https://github.com/rcrowley/go-metrics/blob/master/timer.go#L129
this repository is dead ? or why the fix is still not on master ?