best way to create a timer

Giampaolo Rodola' gnewsg at gmail.com
Fri Jun 13 14:36:07 EDT 2008


On 13 Giu, 07:42, Alexnb <alexnbr... at gmail.com> wrote:
> I am wondering what is the best way to create a timer, like an alarm, once it
> reaches a time, it triggers an event. I have a way of doing this but it
> seems like it isn't good at all. If it helps at all I am using a Tkinter,
> but that probably doesn't mean much. The way I was doing it was using a
> while loop, and just saying while current time is not = to trigger time, do
> nothing, and when it is, do event.
> --
> View this message in context:http://www.nabble.com/best-way-to-create-a-timer-tp17815502p17815502....
> Sent from the Python - python-list mailing list archive at Nabble.com.

I think that threading.Timer could be what you're searching for.


--- Giampaolo
http://code.google.com/p/pyftpdlib/



More information about the Python-list mailing list