diff options
author | Batuhan Taskaya <isidentical@gmail.com> | 2020-05-16 09:39:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 09:39:09 (GMT) |
commit | 45410862321ae509e8753f239b0ea28fdcef5bad (patch) | |
tree | 030a36663d2dc03cf7ce87b528ab316f948ec4e1 /Misc | |
parent | 62972d9d73e83d6eea157617cc69500ffec9e3f0 (diff) | |
download | cpython-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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-04-05-04-16-14.bpo-40192.nk8uRJ.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-05-04-16-14.bpo-40192.nk8uRJ.rst b/Misc/NEWS.d/next/Library/2020-04-05-04-16-14.bpo-40192.nk8uRJ.rst new file mode 100644 index 0000000..e1e7fce --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-04-05-04-16-14.bpo-40192.nk8uRJ.rst @@ -0,0 +1,4 @@ +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. +Patch by Batuhan Taskaya. |