Time delay loop - better way?

Terry Reedy tjreedy at udel.edu
Wed Jun 30 19:17:45 EDT 2004


"Conrad" <bogus_address at nospam.com> wrote in message
news:pan.2004.06.30.22.48.43.405408 at nospam.com...
> Greetings,
>
> Q: Is there some way to gracefully suspend a python app for a second or
>    so then resume?

time.sleep(secs)

>I could write the classic basic dumb
>    loop-tenzillion-times delay, but that seems inelegant, and well, just
>    wrong.

I believe such loops either hog the CPU or take longer than intended.

Terry







More information about the Python-list mailing list