From 1a11d82abfa8dde7e9f2171d18f0a59cb989c698 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Tue, 4 Nov 2025 17:38:09 +0800 Subject: [PATCH 1/2] Clarify Windows version for high-resolution timer Update Windows version reference in time.rst --- Doc/library/time.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 350ffade7af5fa..7e93ac3164a971 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -407,9 +407,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 version 1803, and later the implementation uses a `high-resolution timer - `_ + `_ which provides resolution of 100 nanoseconds. If *secs* is zero, ``Sleep(0)`` is used. .. rubric:: Unix implementation From b9dbdf19956c4c549f1068f4738d93cecf0168f0 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Tue, 4 Nov 2025 17:41:22 +0800 Subject: [PATCH 2/2] Update Doc/library/time.rst Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Doc/library/time.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/time.rst b/Doc/library/time.rst index 7e93ac3164a971..ca232e0b33b6f6 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -407,7 +407,7 @@ 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 10 version 1803, and later the implementation uses + continues execution. On Windows 10 version 1803 and later the implementation uses a `high-resolution timer `_ which provides resolution of 100 nanoseconds. If *secs* is zero, ``Sleep(0)`` is used.