浏览代码

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.