Timer
Roy Smith
roy at panix.com
Mon Oct 27 11:08:29 EST 2003
In article <3f9d1775$0$23584$5a62ac22 at freenews.iinet.net.au>,
Derek Fountain <nomail at hursley.ibm.com> wrote:
>Dave Harrison wrote:
>
>>> > > Does Python have a timer mechanism? i.e. an "after 500 milliseconds,
>>> > > run this bit of code" sort of thing?
>>
>> why not just use the time.sleep() function ?
>
>Because that stops the thread.
Check out the threading module. In particular, the threading.Timer class.
More information about the Python-list
mailing list