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 vstinner
Recipients BTaskaya, belopolsky, p-ganssle, pitrou, vstinner
Date 2020-05-15.14:23:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
time.thread_time() is documented as:
"Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep."

So we must use utime+stime, just not stime (current PR 19381 implementation).

test_time.test_thread_time() validates that time.thread_time() doesn't include time spend during a sleep.
Date User Action Args
2020-05-15 14:23:24vstinnersetrecipients: + vstinner, belopolsky, pitrou, p-ganssle, BTaskaya
2020-05-15 14:23:24vstinnersetmessageid: <>
2020-05-15 14:23:24vstinnerlinkissue40192 messages
2020-05-15 14:23:24vstinnercreate