High-resolution timers

Erno Kuusela erno-news at erno.iki.fi
Thu Jan 17 09:27:33 EST 2002

In article <3C464602.8060000 at skippinet.com.au>, Mark Hammond
<mhammond at skippinet.com.au> writes:

| Use time.clock() - it will always provide the best timer for the 
| platform.

this is false. on most unix systems it uses the low resolution times()
information. in addition, it measures consumed cpu time, and not
wall clock time (as implied by the subject).

on most unixes, time.time() returns usec resolution gettimeofday()
(real) time.

  -- erno

More information about the Python-list mailing list