mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-103417: use time.monotonic in the example for sched.scheduler (#103418)
This commit is contained in:
parent
d65ed693a8
commit
f2b7ecb778
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue