mirror of
https://github.com/golang/go
synced 2024-11-17 21:44:43 -07:00
402ea9e4f9
This CL implements Ticker.Reset method in time package. Benchmark: name time/op TickerReset-12 6.41µs ±10% TickerResetNaive-12 95.7µs ±12% Fixes #33184 Change-Id: I4cbd31796efa012b2a297bb342158f11a4a31fef Reviewed-on: https://go-review.googlesource.com/c/go/+/220424 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
3 lines
97 B
Plaintext
3 lines
97 B
Plaintext
pkg testing, method (*T) Deadline() (time.Time, bool)
|
|
pkg time, method (*Ticker) Reset(Duration)
|