Short timing loops (For your information)

lf11 at deletethistomailme.andonet.com lf11 at deletethistomailme.andonet.com
Tue Mar 14 12:49:13 EST 2000


To the lurkers and anyone else who hasn't posted a message on this--

If you want to make very short 'sleeps' in python, use a fractional value in time.sleep().  This is really 'duh!', but I've spent the past two hours trying to find this out!

Example:

<SNIPPET>

import time

print "About to sleep for 0.3 seconds..."
time.sleep(0.3)
print "Done"

</SNIPPET>



More information about the Python-list mailing list