]> Cypherpunks repositories - gostls13.git/commitdiff
testing: document that ResetTimer also zeros the allocation counters.
authorShenghou Ma <minux.ma@gmail.com>
Thu, 9 Jan 2014 20:21:24 +0000 (15:21 -0500)
committerShenghou Ma <minux.ma@gmail.com>
Thu, 9 Jan 2014 20:21:24 +0000 (15:21 -0500)
Fixes #6998.

R=golang-codereviews, gobot, r
CC=golang-codereviews
https://golang.org/cl/44880044

src/pkg/testing/benchmark.go

index 3473c5b2cbffdb3c4de3b4a0430bdcc50d61138f..cff0774179fae376dc871bda261395f4a87fe27d 100644 (file)
@@ -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 {