Skip to content

Commit

Permalink
doc/go1.20: add a release note for (*testing.B).Elapsed
Browse files Browse the repository at this point in the history
Updates #43620.

Change-Id: If2b6f37d79c055ca5799071bf70fcc9d12b8a2a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/449077
Reviewed-by: Russ Cox <[email protected]>
Run-TryBot: Bryan Mills <[email protected]>
Auto-Submit: Bryan Mills <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
Bryan C. Mills authored and gopherbot committed Nov 14, 2022
1 parent f02bc56 commit 6234e46
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/go1.20.html
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
</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 -->
Expand Down

0 comments on commit 6234e46

Please sign in to comment.