How can I waste time ?
Scott David Daniels
Scott.Daniels at Acm.Org
Fri Feb 20 15:47:54 EST 2004
Paul Rubin wrote:
> richardshea at fastmail.fm (Richard Shea) writes:
>
>>I want my script to pause for a pre-determined number of seconds. How
>>do you do that ?
>
>
> import time
> time.sleep(3) # sleep 3 seconds
Or, if you like,
import math, time
time.sleep(math.pi) # For a bit more than 3 seconds.
The point of this post is simply to make sure people realize they can
use floating point for partial seconds (but I don't know about imaginary
time).
--
-Scott David Daniels
Scott.Daniels at Acm.Org
More information about the Python-list
mailing list