소스 검색

Update the Timer interface for Go 1.

Richard Crowley 13 년 전
부모
커밋
01e6516a55
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.