From: David C. <D. C. <si...@te...> - 2000-06-09 05:46:17
|
Peter Nicolai writes: > I think I have something useful to share, which gives > me a little lump in my throat...:) > > on win98: > > avg smallest difference between two calls to > time.time(): 0.0550000071526 seconds. > avg smallest difference between two calls to > time.clock(): 0.00199969828525 seconds. > > Does time.clock() work on all platforms? if so 2ms > accuracy isn't too awful, is it? I attached the > script, tell me if I'm missing something --P > <Code Snipped> This is interesting. Results under Unix: avg smallest difference between two calls to time(): 8.32080841064e-06 seconds. avg smallest difference between two calls to clock(): 0.01 seconds. To wit: opposite results in terms of precision. The issue, of course, is whether or not it works on the Mac. Does anyone on list have a Mac we could try this code out on? Incidently, you're missing an 'import time' line at the top :) David Clark si...@te... Preliminary pySDL Documentation: http://www3.telus.net/futility/futility/docs/pysdl/index.html |