implementing a timer?
ws-news at gmx.at
Tue Dec 18 11:14:12 CET 2001
you can use the sleep function from the time module, for example:
>>> import time
>>> i = 0
>>> while i < 10:
... print i
This prints the numbers 0 to 9 with 10 seconds delay after each one. To get
minutes, multiply by 60. You can also specify fractional values to get
shorter periods that a second.
"waalp" <waalp at pissed.co.uk> wrote in message
news:9vn0gv$ll6$1 at colo.mobo-it.nl...
> I'm trying to make a script that will check if i have mail every let's say
> 10 minutes.So i tought let's use something like a timer. But i can't find
> any documentation on how to implement something like this.
> I'm a beginner so it could be that i haven't looked in the right places.
> Could somebody please help?
More information about the Python-list