summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBatuhan Taskaya <isidentical@gmail.com>2020-05-16 09:39:09 (GMT)
committerGitHub <noreply@github.com>2020-05-16 09:39:09 (GMT)
commit45410862321ae509e8753f239b0ea28fdcef5bad (patch)
tree030a36663d2dc03cf7ce87b528ab316f948ec4e1 /Doc
parent62972d9d73e83d6eea157617cc69500ffec9e3f0 (diff)
downloadcpython-45410862321ae509e8753f239b0ea28fdcef5bad.zip
cpython-45410862321ae509e8753f239b0ea28fdcef5bad.tar.gz
cpython-45410862321ae509e8753f239b0ea28fdcef5bad.tar.bz2
bpo-40192: Use thread_cputime for time.thread_time to improve resolution (GH-19381)
On AIX, time.thread_time() is now implemented with thread_cputime() which has nanosecond resolution, rather than clock_gettime(CLOCK_THREAD_CPUTIME_ID) which has a resolution of 10 ms.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.9.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index c721a16..cbddbb4 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -480,6 +480,14 @@ The :mod:`socket` module now exports the :data:`~socket.CAN_RAW_JOIN_FILTERS`
constant on Linux 4.1 and greater.
(Contributed by Stefan Tatschner and Zackery Spytz in :issue:`25780`.)
+time
+----
+
+On AIX, :func:`~time.thread_time` is now implemented with ``thread_cputime()``
+which has nanosecond resolution, rather than
+``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 ms.
+(Contributed by Batuhan Taskaya in :issue:`40192`)
+
sys
---