Re: [Python-Dev] Conflict between time docs and timeit

2011-03-18 Thread Antoine Pitrou
On Fri, 18 Mar 2011 17:06:50 +1100 Steven D'Aprano wrote: > > In contrast, timeit defaults to using time.time() under all operating > systems other than Windows, and says: > > ...on Windows, clock() has microsecond granularity but > time()'s granularity is 1/60th of a second; on Unix,

[Python-Dev] Conflict between time docs and timeit

2011-03-17 Thread Steven D'Aprano
I see that the documentation for the time module has this to say about time.clock: On Unix, return the current processor time as a floating point number expressed in seconds. The precision, and in fact the very definition of the meaning of “processor time”, depends on that of the