best way of defining a "timer"

Warren Postma embed at geocities.com
Fri Mar 31 09:36:20 EST 2000


> Is there a community concesus on the best way of defining a "timer" in
> python? The properties I expect from a timer is simple: firing off
> action, generating event upon time.
>
> Basically, I look at python from concurrent programming point of view, so
> timer is one of the basic unit I want to be familiar with.

Try defining a thread that sleeps then executes a function, then sleeps
again.

Warren






More information about the Python-list mailing list