[Python-Dev] time.clock() on windows

Antoine Pitrou solipsis at pitrou.net
Thu Oct 22 13:19:54 CEST 2009


M.-A. Lemburg <mal <at> egenix.com> writes:
> 
> I'm not sure I understand why time.clock() should be considered
> broken.

Because in some cases you want comparable high-resolution numbers from distinct
processes.

> time.clock() is used for measuring process CPU time

According to the docs, under Windows it measures wall-clock time rather than CPU
time.

Regards

Antoine.




More information about the Python-Dev mailing list