Codebase list golang-github-go-kit-kit / 0b39753
Changes as per code review esenac 6 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2828 t.h.Observe(d)
2929 }
3030
31 // Unit sets the timer time unit
31 // Unit sets the unit of the float64 emitted by the timer.
32 // By default, the timer emits seconds.
3233 func (t *Timer) Unit(u time.Duration) {
3334 t.u = u
3435 }
3232 }
3333
3434 func TestTimerUnit(t *testing.T) {
35
3635 for _, tc := range []struct {
3736 name string
3837 unit time.Duration