Message368947
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. |
|
Date |
User |
Action |
Args |
2020-05-15 14:23:24 | vstinner | set | recipients:
+ vstinner, belopolsky, pitrou, p-ganssle, BTaskaya |
2020-05-15 14:23:24 | vstinner | set | messageid: <1589552604.52.0.872248474364.issue40192@roundup.psfhosted.org> |
2020-05-15 14:23:24 | vstinner | link | issue40192 messages |
2020-05-15 14:23:24 | vstinner | create | |
|