mirror of
https://github.com/python/cpython
synced 2024-10-14 10:48:24 +00:00
gh-103417: use time.monotonic in the example for sched.scheduler (#103418)
This commit is contained in:
parent
d65ed693a8
commit
f2b7ecb778
|
@ -36,7 +36,7 @@ scheduler:
|
|||
Example::
|
||||
|
||||
>>> import sched, time
|
||||
>>> s = sched.scheduler(time.time, time.sleep)
|
||||
>>> s = sched.scheduler(time.monotonic, time.sleep)
|
||||
>>> def print_time(a='default'):
|
||||
... print("From print_time", time.time(), a)
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue