runtime: use monotonic time on darwin #18455
Labels
FrozenDueToAge
help wanted
OS-Darwin
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
If you have a loop with time.Sleep(time.Second) and you set the clock back (for example, an hour), the time.Sleep will hang for that amount of time (an hour), instead of 1s.
Run this:
And then set the clock back an minute or hour, or however much time you want it to hang.
What did you expect to see?
I expect time.Sleep not be affected by clock changes (or skew).
What did you see instead?
The
time.Sleep
will hang (for a minute or however long you set the clock back).The text was updated successfully, but these errors were encountered: