calling functions at the same time

Knio knio at knio.h4xn3t.net
Sat May 1 18:43:26 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():
> 
> [snip]

ah, interesting.. on my windows machine (pentium 4) I only have a 1ms 
timer resolution.

import time
t = []
for i in range(10):
	t.append(time.time())
print t

[1083451302.5739999, 1083451302.5739999, 1083451302.5739999, 
1083451302.5739999, 1083451302.5739999, 1083451302.5739999, 
1083451302.5739999, 1083451302.5739999, 1083451302.5739999, 
1083451302.5739999]




More information about the Python-list mailing list