[issue1040026] os.times() is bogus

Malte Helmert report at bugs.python.org
Sat Feb 23 16:14:32 CET 2008


Malte Helmert added the comment:

I'm attaching a test script (test_times.py) that forks a child which
runs for 5 seconds, waits for the child, then prints the time taken by
the child according to os.times().

I have a machine where os.times() reproducably reports that 8.33 seconds
have been spent, although indeed only 5 seconds pass:

======================================
# time python test_times.py
8.33333333333

real    0m5.018s
user    0m5.008s
sys     0m0.008s
======================================

I don't know which characteristics of the machine are causing this.

----------
nosy: +maltehelmert
Added file: http://bugs.python.org/file9497/test_times.py

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1040026>
_____________________________________


More information about the Python-bugs-list mailing list