This code:
import time
now = time.clock()
while now + 5 > time.clock():
print time.clock()
time.sleep(1)
print "Woke up"
returns:
0.015718
Woke up
0.015814
Woke up
0.015942
Woke up
0.016107
Woke up
0.01625
Woke up
0.016363
As you can see, the time returned does not seem to return the elapsed time with seconds represented as integers, even though that is what the documentation says it should do. What is wrong here?
EDIT: I'm on Mac OS X El Capitan