rcrowley / go-metrics

Go port of Coda Hale's Metrics library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NilTimer should execute function argument in Time

chewr opened this issue · comments

commented

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 ?