[computer-go] Precise clock cycles measurements
Mark Boon
tesujisoftware at gmail.com
Mon Sep 4 04:07:26 PDT 2006
QueryPerformanceCounter() is very precise but also extremely
expensive. Reminds me somewhat of the Heisenberg uncertainty principle.
Mark
On 4-sep-06, at 07:28, Dave Denholm wrote:
> "Mike Young" <mikewhy at sbcglobal.net> writes:
>
>
>> For VC7.x:
>>
>> typedef TickCount unsigned __int64;
>>
>> __forceinline TickCount GetPerfCount()
>> { __asm rdtsc;
>> }
>>
>> VC8 removed asm support for rdtsc.
>>
>
> win32 provides a fn QueryPerformanceCounter() which [probably]
> accesses this timer in a portable way. This should work on all
> versions of windows. As a function call, it might have more overhead
> though.
>
> dd
> --
> Dave Denholm <ddenholm at esmertec.com> http://
> www.esmertec.com
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
More information about the computer-go
mailing list