Commit graph

2 commits

Author SHA1 Message Date
Felix Lange
caca997e5b common/mclock: add NewTimer and Timer.Reset
These methods can be helpful when migrating existing timer code.
2020-02-06 23:19:29 +01:00
Felix Lange
b1c3010bf2
common/mclock: clean up AfterFunc support (#20054)
This change adds tests for the virtual clock and aligns the interface
with the time package by renaming Cancel to Stop. It also removes the
binary search from Stop because it complicates the code unnecessarily.
2019-09-16 11:16:30 +02:00