From: Shenghou Ma Date: Thu, 9 Jan 2014 20:21:24 +0000 (-0500) Subject: testing: document that ResetTimer also zeros the allocation counters. X-Git-Tag: go1.3beta1~1019 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9847c065f493be193231c0482dca200247732ca9;p=gostls13.git testing: document that ResetTimer also zeros the allocation counters. Fixes #6998. R=golang-codereviews, gobot, r CC=golang-codereviews https://golang.org/cl/44880044 --- diff --git a/src/pkg/testing/benchmark.go b/src/pkg/testing/benchmark.go index 3473c5b2cb..cff0774179 100644 --- a/src/pkg/testing/benchmark.go +++ b/src/pkg/testing/benchmark.go @@ -74,7 +74,7 @@ func (b *B) StopTimer() { } } -// ResetTimer sets the elapsed benchmark time to zero. +// ResetTimer zeros the elapsed benchmark time and memory allocation counters. // It does not affect whether the timer is running. func (b *B) ResetTimer() { if b.timerOn {