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

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