is there any way to leave a time delay between the execution of two lines of code?
+8
A:
You can use the sleep() function in the time module. It can take a float argument for sub second resolution.
from time import sleep
sleep(0.1) # Time in seconds.
pobk
2008-09-15 16:34:29
is it completely cross plat or there is any kind of issue on Win, for example, I'd have to care about? Thank you in advance.
AlberT
2009-10-22 08:03:52