[issue13481] Use an accurate clock in timeit

Antoine Pitrou report at bugs.python.org
Sat Nov 26 12:00:37 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> With CLOCK_PROCESS_CPUTIME_ID:
> - depending on the platform, we'll measure either wall-clock time or
> CPU time

Indeed. I thought CPU time would be more useful (and that's the point of
the patch) but perhaps it breaks the spec.

> - preemtion, blocking syscalls, etc won't be accounted for (so, for
> example, I/O-related tests will be meaningless)

But does it include kernel CPU time for the given process?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13481>
_______________________________________


More information about the Python-bugs-list mailing list