calling functions at the same time

Peter Hansen peter at engcorp.com
Sat May 1 12:57:14 EDT 2004


Grant Edwards wrote:

> In article <kNIkc.1367$U75.564 at edtnps89>, Knio wrote:
> 
>>You can't get greater then 1ms accuracy when measuring a time
>>on todays machines, and that will be less when measuring time
>>over a network...
> 
> Not sure what you mean by "todays machines", but on a
> Pentium-class machine running Linux, you get approx 1us
> resolution with calls to time.time():

Keep in mind the difference between "accuracy" and
"resolution" (or "precision").

I think Knio is probably right that, unless you are
running on a realtime OS, you won't be able to
guarantee anything better than 1ms accuracy, and
quite probably not even that.

-Peter



More information about the Python-list mailing list