mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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:
parent
41944be1e1
commit
7db06be57f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue