How to suspend execution for at least x seconds in python ? (ie does "sleep" exist in Python ?)

Mike Varney varney at collorado.edu
Mon Jun 3 04:21:05 EDT 2002


"Nicolas Torzec" <nicolas.torzec at rd.francetelecom.com> wrote in message
news:adf7t3$ki71 at news.rd.francetelecom.fr...
> Dear all,
> I was wondering if an utility like "sleep x" exist in python ?
> Under Unix-like operating systems, the sleep utility suspends execution
for at least x seconds under...
>


from time import sleep # imports sleep timer

sleep(t)   # invokes Sleep timer




More information about the Python-list mailing list