Explorar o código

Update the Timer interface for Go 1.

Richard Crowley %!s(int64=13) %!d(string=hai) anos
pai
achega
01e6516a55
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      timer.go

+ 2 - 1
timer.go

@@ -19,7 +19,8 @@ type Timer interface {
 	RateMean() float64
 	StdDev() float64
 	Time(func())
-	Update(uint64)
+	Update(time.Duration)
+	UpdateSince(time.Time)
 }
 
 // The standard implementation of a Timer uses a Histogram and Meter directly.