Pausing python programs
max khesin
max at NcOviSsPiAoMntech.com
Thu Jan 29 10:44:24 EST 2004
Graham wrote:
> 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.
max
More information about the Python-list
mailing list