summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-11-09 11:19:21 -0500
committerGopher Robot <gobot@golang.org>2022-11-14 19:43:58 +0000
commit6234e467e50b35e967b9a91f8b6fa01fa6691bfa (patch)
treecede091f02fda09852b6b660bc981c2fb9623eee /doc
parentf02bc56d299e9cd7c264333488695fa70ddc937b (diff)
downloadgo-git-6234e467e50b35e967b9a91f8b6fa01fa6691bfa.tar.gz
doc/go1.20: add a release note for (*testing.B).Elapsed
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.20.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/go1.20.html b/doc/go1.20.html
index 551403fa45..767b6b646f 100644
--- a/doc/go1.20.html
+++ b/doc/go1.20.html
@@ -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 -->