[3.14] gh-141246: Link to correct Windows docs in time.sleep() doc (GH-141248) (#141251)

gh-141246: Link to correct Windows docs in `time.sleep()` doc (GH-141248)
(cherry picked from commit 6545a4e8f8)

Co-authored-by: 莯凛 <1348292515@qq.com>
This commit is contained in:
Miss Islington (bot) 2025-11-08 16:02:35 +01:00 committed by GitHub
parent 41944be1e1
commit 7db06be57f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,9 +396,9 @@ Functions
On Windows, if *secs* is zero, the thread relinquishes the remainder of its
time slice to any other thread that is ready to run. If there are no other
threads ready to run, the function returns immediately, and the thread
continues execution. On Windows 8.1 and newer the implementation uses
continues execution. On Windows 10 and newer the implementation uses
a `high-resolution timer
<https://learn.microsoft.com/windows-hardware/drivers/kernel/high-resolution-timers>`_
<https://learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-createwaitabletimerexw>`_
which provides resolution of 100 nanoseconds. If *secs* is zero, ``Sleep(0)`` is used.
.. rubric:: Unix implementation