mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
f02bc56d29
commit
6234e467e5
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue