]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40192: Use thread_cputime for time.thread_time to improve resolution (GH-19381)
authorBatuhan Taskaya <isidentical@gmail.com>
Sat, 16 May 2020 09:39:09 +0000 (12:39 +0300)
committerGitHub <noreply@github.com>
Sat, 16 May 2020 09:39:09 +0000 (11:39 +0200)
commit45410862321ae509e8753f239b0ea28fdcef5bad
tree030a36663d2dc03cf7ce87b528ab316f948ec4e1
parent62972d9d73e83d6eea157617cc69500ffec9e3f0
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.
Doc/whatsnew/3.9.rst
Misc/NEWS.d/next/Library/2020-04-05-04-16-14.bpo-40192.nk8uRJ.rst [new file with mode: 0644]
Modules/timemodule.c