How to make a repeatedly timer with 5ms precision?
Terry Reedy
tjreedy at udel.edu
Wed Apr 30 18:17:06 EDT 2003
"¬½£ÐÛ" <jxlu at fudan.edu.cn> wrote in message
news:mailman.1051736974.9481.python-list at python.org...
> I am trying to make a repeatedly timer with high precision, the
following program 'countdown.py' is an example which shows the way how
I tried to make it.
> The problem is that it doesn't work properly with tick set to 5ms or
smaller.
> Is there a better way to implement a more precise repeatedly timer?
...
> print count,time.time()
...
> start=time.time()
Dependig on your system, tou may do better with time.clock() than
time.time().
See Lib Ref 6.9 time -- Time access and conversions
Terry
More information about the Python-list
mailing list