Re: How can I waste time ?

From: Ken Godee (ken_at_perfect-image.com)
Date: 02/19/04


Date: Wed, 18 Feb 2004 20:55:27 -0700
To: Richard Shea <richardshea@fastmail.fm>

Richard Shea wrote:
> I'm sure this is a very simple question but I can't find an answer in
> the archives.
>
> I want my script to pause for a pre-determined number of seconds. How
> do you do that ? I've found 'pause()' although it sounds awfully deep
> for what I want and what's more it doesn't work on W32 (I'm developing
> on W32 but will run on *nix).
>
> Oh yes one other thing - I could write a loop and keep checking the
> sytem clock but I would prefer for the process to just get out of the
> way to allow others things access to the CPU.
>
> As I say I'm sure it's dead simple but how ?
>
> thanks
>
> richard shea.

import time
time.sleep(secs)



Relevant Pages

  • RE: How can I waste time ?
    ... > From: Richard Shea ... > the archives. ... > As I say I'm sure it's dead simple but how? ... Tim Delaney ...
    (comp.lang.python)
  • Re: How can I waste time ?
    ... richardshea@fastmail.fm (Richard Shea) writes: ... > I want my script to pause for a pre-determined number of seconds. ... time.sleep(3) # sleep 3 seconds ...
    (comp.lang.python)