Pausing python programs
max at NcOviSsPiAoMntech.com
Thu Jan 29 16:44:24 CET 2004
> How can I cause a python program to pause/suspend execution for a period of
> time? I am checking status of an external system and only want to check
> every second as opposed to my current which checks may times a secnod and
> hogs my cpu in the process!!!
> Thank you to anyone who can help.
> Graham Smith
> PeopleSoft Technical Team Leader
> OXFAM GB
> +44 (1865) 313255
> gsmith at oxfam.org.uk
Sleep() (at least on windoze) will suspend your app from execution. From
some experiments I think Python's time.sleep() uses it.
More information about the Python-list