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

Eric Brunel eric.brunel at pragmadev.com
Mon Jun 3 06:33:10 EDT 2002


Nicolas Torzec wrote:
> 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...

Of course it does:

import time
time.sleep(x)

HTH
-- 
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com



More information about the Python-list mailing list