summaryrefslogtreecommitdiffstats
path: root/Doc/library/sched.rst
diff options
context:
space:
mode:
authorNick Burns <nburns@users.noreply.github.com>2023-04-12 08:59:21 (GMT)
committerGitHub <noreply@github.com>2023-04-12 08:59:21 (GMT)
commitf2b7ecb7783299c4555e89125ca9ba8e89854643 (patch)
treec6754a8b7fff85cc0573bbfa7488c03466cd47c6 /Doc/library/sched.rst
parentd65ed693a8a13a2a7f9b201bda1224d6ae5fcf0e (diff)
downloadcpython-f2b7ecb7783299c4555e89125ca9ba8e89854643.zip
cpython-f2b7ecb7783299c4555e89125ca9ba8e89854643.tar.gz
cpython-f2b7ecb7783299c4555e89125ca9ba8e89854643.tar.bz2
gh-103417: use time.monotonic in the example for sched.scheduler (#103418)
Diffstat (limited to 'Doc/library/sched.rst')
-rw-r--r--Doc/library/sched.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst
index a051c65..04215d3 100644
--- a/Doc/library/sched.rst
+++ b/Doc/library/sched.rst
@@ -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)
...