Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Allow Time Control In Milliseconds

Author: Koundinya Veluri

Date: 15:53:08 12/21/01

Go up one level in this thread


On December 21, 2001 at 16:20:45, Paul Byrne wrote:

>On December 21, 2001 at 10:34:22, Graham Laight wrote:
>
>>All my chess computers/programs only allow you to set time control per move to
>>the nearest second. Even with "permanant brain" (where did THAT expression come
>>from?) off, this still makes them too strong for an enjoyable game of chess.
>>
>>A nice simple idea - why not allow the player to specify the time in
>>milliseconds?  We could then level down the play by throttling off almost all of
>>the computer's thinking time. I'm sure that they'd be much more fun to play
>>against then.
>>
>>-g
>
>On a related note, anyone know an easy way to get the time with millisecond
>resolution under VC?  ftime and such seem to have a resolution of 50 ms or so.
>
>-paul

According to VC documentation, the resolution is OS dependant. Quote from VC
documentation for GetTickCount() (I'm fairly sure that this also applies to
time() and ftime() because I use ftime() and I get 10 ms resolution on WinXP):

Windows NT 3.5 and later The system timer runs at approximately 10ms.
Windows NT 3.1 The system timer runs at approximately 16ms.
Windows 95 and later The system timer runs at approximately 55ms.

Also, check out the windows functions QueryPerformanceFrequency() and
QueryPerformanceCounter().

Regards,
Koundinya



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.