]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.20: add a release note for (*testing.B).Elapsed
authorBryan C. Mills <bcmills@google.com>
Wed, 9 Nov 2022 16:19:21 +0000 (11:19 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 14 Nov 2022 19:43:58 +0000 (19:43 +0000)
Updates #43620.

Change-Id: If2b6f37d79c055ca5799071bf70fcc9d12b8a2a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/449077
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

doc/go1.20.html

index 551403fa452125abb810fd941686d6585cc6f694..767b6b646f17c881476286d7207e40c02c9c5eac 100644 (file)
@@ -623,6 +623,16 @@ Do not send CLs removing the interior tags from such phrases.
   </dd>
 </dl><!-- syscall -->
 
+<dl id="testing"><dt><a href="/pkg/testing/">testing</a></dt>
+  <dd>
+    <p><!-- https://go.dev/issue/43620, CL 420254 -->
+      The new method <a href="/pkg/testing/#B.Elapsed"><code>B.Elapsed</code></a>
+      reports the current elapsed time of the benchmark, which may be useful for
+      calculating rates to report with <code>ReportMetric</code>.
+    </p>
+  </dd>
+</dl><!-- testing -->
+
 <dl id="time"><dt><a href="/pkg/time/">time</a></dt>
   <dd>
     <p><!-- https://go.dev/issue/52746 -->