[ZODB-Dev] Test Failure
Chris Withers
chrisw@nipltd.com
Fri, 31 May 2002 08:24:44 +0100
Tim, Barry,
Firstly, thanks for getting the test to pass :-)
I'll merge the fix to the 2.5 branch when I get a chance...
Tim Peters wrote:
>
> I bet you can't do this on Linux:
>
> >>> from time import sleep, time
> >>> print `time()`; sleep(0.02); print `time()`
> 1022270956.65
> 1022270956.65
> >>>
>
> OTOH, the Windows time.clock() has fine enough resolution to measure
> background noise:
>
> >>> s = clock(); sleep(0); print `clock()-s`
> 0.00030255284198688059
> >>> s = clock(); sleep(0); print `clock()-s`
> 0.00030339093849818255
> >>> s = clock(); sleep(0); print `clock()-s`
> 0.0013015638880986558
Hmmm... so does this mean the resolution problem lies in Python's time module?!
cheers,
Chris