From: Nick Burns Date: Wed, 12 Apr 2023 08:59:21 +0000 (-0700) Subject: gh-103417: use time.monotonic in the example for sched.scheduler (#103418) X-Git-Tag: v3.12.0b1~558 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2b7ecb7783299c4555e89125ca9ba8e89854643;p=thirdparty%2FPython%2Fcpython.git gh-103417: use time.monotonic in the example for sched.scheduler (#103418) --- diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst index a051c65b97b0..04215d31ba10 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) ...