Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: random book moves/ random generator

Author: Tom Kerrigan

Date: 15:15:43 01/13/00

Go up one level in this thread


On January 13, 2000 at 14:00:10, Christophe Theron wrote:

>Be careful with milliseconds on a PC running Windows 9x. Actually the PC timer
>has not changed since prehistory, and it is still producing interrupts at
>18.2Hz. That means that the resolution of time of day under Windows 9x is more
>than 50 milliseconds!
>
>Under Windows NT I remember this is 10ms. Much better, but stil not accurate to
>the millisecond.

I think the 18.2Hz deal needs to be maintained for backwards compatibility with
DOS programs.

I'm almost 100% certain that GetTickCount() under Windows 95/98/NT has
millisecond accuracy. It's possible that it skips a millisecond once in a while,
but it is frequently incremented by 1.

-Tom



This page took 0.01 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

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