From e643412ef443b7a6847833f1e140b567622ac383 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 12 Apr 2023 02:09:08 -0700 Subject: [PATCH] gh-103417: use time.monotonic in the example for sched.scheduler (GH-103418) (cherry picked from commit f2b7ecb7783299c4555e89125ca9ba8e89854643) Co-authored-by: Nick Burns --- Doc/library/sched.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst index a051c65b97b..04215d31ba1 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) ...