]> Cypherpunks repositories - gostls13.git/commit
time, runtime: only call resetTimer from (*Timer).Reset
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Apr 2020 19:52:17 +0000 (12:52 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 6 Apr 2020 03:35:33 +0000 (03:35 +0000)
commit5f3354d1bf2e6a61e4b9e1e31ee04b99dfe7de35
tree5f6516429d7639976bed14bdbc4b68ab0586cdc5
parent763bd58b19a3aea9760cb8c8326dabf78653db68
time, runtime: only call resetTimer from (*Timer).Reset

Previously we stopped the timer and then reset it. With the current
timer implementation that is no longer required.

Change-Id: Ie7aba61ad53ce835f6fcd0b6bce7fe0a15b10e24
Reviewed-on: https://go-review.googlesource.com/c/go/+/227180
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/time.go
src/time/sleep.go