Time delay loop - better way?

Terry Reedy tjreedy at udel.edu
Thu Jul 1 01:17:45 CEST 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