[Python-bugs-list] time.sleep() interferes with time.clock() (PR#321)

urracht@home.com urracht@home.com
Tue, 9 May 2000 21:46:33 -0400 (EDT)


Full_Name: Steven Brooks
Version: 1.5.2
OS: Linux
Submission from: cd834592-a.ctjams1.mb.wave.home.com (24.108.113.70)


Test Case:
import time
for i in range(100000): time.sleep(1) ; print time.clock()

Expected Behaviour:
clock() should increment by 1 after each call to sleep()

Actual Behaviour:
clock() does not seem to increment at all!

Output:
0.07
0.07
0.07
0.07
0.07
(etc. etc.)

This is either a bug, or a documentation error.  The library manual does
not seem to say or imply that time.sleep() should interfere with time.clock().

Thanks,
Steven