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 <1589552604.52.0.872248474364.issue40192@roundup.psfhosted.org>
In-reply-to
Content
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."
https://docs.python.org/dev/library/time.html#time.thread_time

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.
History
Date User Action Args
2020-05-15 14:23:24vstinnersetrecipients: + vstinner, belopolsky, pitrou, p-ganssle, BTaskaya
2020-05-15 14:23:24vstinnersetmessageid: <1589552604.52.0.872248474364.issue40192@roundup.psfhosted.org>
2020-05-15 14:23:24vstinnerlinkissue40192 messages
2020-05-15 14:23:24vstinnercreate