How to measure elapsed time under Windows?
Grant Edwards
invalid at invalid.invalid
Wed Feb 10 17:40:34 EST 2010
On 2010-02-09, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
> In code, using SetProcessAffinityMask and related functions:
> http://msdn.microsoft.com/en-us/library/ms686223(VS.85).aspx
That solves the problem. If I don't set the process affinity
mask, I regularly get measurements that are off by 6ms. I
presume 6ms is the skew between the two cores' performance
counter values. I don't know if that difference is stable or
how it varies, but now it doesn't matter. :)
--
Grant Edwards grante Yow! If our behavior is
at strict, we do not need fun!
visi.com
More information about the Python-list
mailing list