This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients belopolsky, pitrou, vstinner
Date 2017-11-14.13:50:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Currently, the time module has time.process_time(), a cross-platform function for getting per-process elapsed CPU time.

Similarly, we could expose time.thread_time(), to get per-thread elapsed CPU time.
On a modern POSIX platform, it can use clock_gettime(CLOCK_THREAD_CPUTIME_ID).
On Windows, it can use GetThreadTimes():
On other platforms, it can simply raise NotImplementedError.

Currently, you would need ctypes hacks to call GetThreadTimes(), which is not very nice.
Date User Action Args
2017-11-14 13:50:20pitrousetrecipients: + pitrou, belopolsky, vstinner
2017-11-14 13:50:20pitrousetmessageid: <>
2017-11-14 13:50:20pitroulinkissue32025 messages
2017-11-14 13:50:20pitroucreate