OT: recommended way of timing two pieces of code in C

Tom Horsley horsley1953 at gmail.com
Sat Feb 27 13:43:38 UTC 2016


On Sat, 27 Feb 2016 11:39:11 +0000
Patrick O'Callaghan wrote:

> I doubt that will make any difference. As you said, the timers are
> measuring process virtual time, so whether the process is scheduled
> more or less frequently shouldn't matter.

You'd be less confident if you'd seen the number of bugs
in the high resolution accounting code in the linux kernel :-).
It may be working moderately well these days in new kernels.


More information about the users mailing list