gh-103417: use time.monotonic in the example for sched.scheduler (#103418)

This commit is contained in:
Nick Burns 2023-04-12 01:59:21 -07:00 committed by GitHub
parent d65ed693a8
commit f2b7ecb778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
...