Entry
How can I make a python program "sleep" or pause for a moment?
Oct 23rd, 2002 06:20
Michael Chermside, Klaus Alexander Seistrup
Sometimes your computer just goes too fast. If you need to pause while
polling, make one thread wait while others continue to compute, or if
your Python program just runs too darn fast <wink>, then what you need
is this:
>>> import time
>>> help(time.sleep)
Help on built-in function sleep:
sleep(...)
sleep(seconds)
Delay execution for a given number of seconds. The argument may be
a floating point number for subsecond precision.