]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103417: use time.monotonic in the example for sched.scheduler (GH-103418)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Apr 2023 09:09:08 +0000 (02:09 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Apr 2023 09:09:08 +0000 (02:09 -0700)
(cherry picked from commit f2b7ecb7783299c4555e89125ca9ba8e89854643)

Co-authored-by: Nick Burns <nburns@users.noreply.github.com>
Doc/library/sched.rst

index a051c65b97b05ee94411f46f7cc455a1cdbc3c09..04215d31ba10ca004899c1db3270b4fff276c25e 100644 (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)
    ...