Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Strange timing problem wit performance counter (for Windows experts?)

Author: Jeremiah Penery

Date: 21:21:30 11/09/04

Go up one level in this thread


On November 07, 2004 at 15:56:28, Dieter Buerssner wrote:

>One user of my engine reported regular forfeits on time. It turned out, that on
>his computer my timing code does not work well. The QueryPerformanceCounter
>function just seems to return wrong results, while GetTickCount works as
>expected. In Yace, I use the former function if available, and the later only as
>fallback. I actually forgot why, but I think it had some reason once :-)
>
>Can anybody explain, why QueryPerformanceCounter returns wrong results. The

Don't know how to explain that, sorry.  But you might look into using the
GetThreadTimes() or GetProcessTimes() API functions for Windows.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.