summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorLivius <egyszeregy@freemail.hu>2021-09-13 12:37:38 (GMT)
committerGitHub <noreply@github.com>2021-09-13 12:37:38 (GMT)
commit85a4748118c3793be7047ecbcbfc79dd07cb2a75 (patch)
tree8faca8b6e772af6312db9daa26f4d89b1e29a3bd /Misc
parent3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 (diff)
downloadcpython-85a4748118c3793be7047ecbcbfc79dd07cb2a75.zip
cpython-85a4748118c3793be7047ecbcbfc79dd07cb2a75.tar.gz
cpython-85a4748118c3793be7047ecbcbfc79dd07cb2a75.tar.bz2
bpo-21302: Add clock_nanosleep() implementation for time.sleep() (GH-28111)
In Unix operating systems, time.sleep() now uses the clock_nanosleep() function, if available, which allows to sleep for an interval specified with nanosecond precision. Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-11-18-44-40.bpo-21302.QxHRpR.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-11-18-44-40.bpo-21302.QxHRpR.rst b/Misc/NEWS.d/next/Library/2021-09-11-18-44-40.bpo-21302.QxHRpR.rst
new file mode 100644
index 0000000..86f0a5a
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-11-18-44-40.bpo-21302.QxHRpR.rst
@@ -0,0 +1,2 @@
+In Unix operating systems, :func:`time.sleep` now uses the ``clock_nanosleep()`` function,
+if available, which allows to sleep for an interval specified with nanosecond precision. \ No newline at end of file