]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-103417: Fix the scheduler example (GH-111497) (GH-115908)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 Feb 2024 12:04:32 +0000 (13:04 +0100)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 12:04:32 +0000 (14:04 +0200)
commitf684e257b1499d9399f4fb07f11aa98cad778dd3
tree8abf537044bff17d472c3a7d937e1af433330d2b
parent116375eb04f38fa4be1058b1f2f0443f709cf9bf
[3.12] gh-103417: Fix the scheduler example (GH-111497) (GH-115908)

Arguments to enterabs() are specified as Unix time.
If the scheduler use the time.monotonic timer, the code will take
decades to complete.
(cherry picked from commit cb287d342139509e03a2dbe5ea2608627fd3a350)

Co-authored-by: mauricelambert <50479118+mauricelambert@users.noreply.github.com>
Doc/library/sched.rst