High-resolution timers

Erno Kuusela erno-news at erno.iki.fi
Thu Jan 17 15:27:33 CET 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