[Tutor] sleep command in python?
Bob Gailer
bgailer at alum.rpi.edu
Tue Nov 14 20:17:33 CET 2006
paulino1 at sapo.pt wrote:
> Is there a "sleep" command in python like the bash's sleep?
import time
time.sleep(secs)
"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."
--
Bob Gailer
510-978-4454
More information about the Tutor
mailing list