Skip to content

Commit

Permalink
gh-103417: use time.monotonic in the example for sched.scheduler (#10…
Browse files Browse the repository at this point in the history
  • Loading branch information
nburns authored Apr 12, 2023
1 parent d65ed69 commit f2b7ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/sched.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
...
Expand Down

0 comments on commit f2b7ecb

Please sign in to comment.