Skip to content

Commit

Permalink
gh-103417: use time.monotonic in the example for sched.scheduler (GH-…
Browse files Browse the repository at this point in the history
…103418)

(cherry picked from commit f2b7ecb)

Co-authored-by: Nick Burns <nburns@users.noreply.github.com>
  • Loading branch information
miss-islington and nburns authored Apr 12, 2023
1 parent b5fe28d commit e643412
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 e643412

Please sign in to comment.