python sleep

This is my OLD blog. I've copied this post over to my NEW blog at:

You should be redirected in 2 seconds.

how to sleep for 5 seconds in python:
import time

how to sleep for 0.5 seconds in python:
import time

From the Python documentation:
Suspend execution for the given number of seconds. The argument may be a floating point number to indicate a more precise sleep time. The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal's catching routine. Also, the suspension time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system.

No comments:


This is my *OLD* blog. I've copied all of my posts and comments over to my NEW blog at:

Please go there for my updated posts. I will leave this blog up for a short time, but eventually plan to delete it. Thanks for reading.