GetTickCount vs. clock for msec resolution

Erno Kuusela erno-news at erno.iki.fi
Sun Apr 22 09:44:16 EDT 2001


In article <3ADFCB0C.6040706 at ActiveState.com>, Mark Hammond
<MarkH at ActiveState.com> writes:

| I believe that in general, if better timers for a platform become known 
| they will be used in time.clock() so the profiler sees better 
| resolution.  Therefore this is probably the safest function to use.

at least on linux, clock() has very poor (timer interrupt, 100hz on x86)
resolution and time.time() has ~1 microsecond resolution.

  -- erno




More information about the Python-list mailing list