Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: program performence timing question

Author: Daniel Clausen

Date: 05:50:26 01/23/02

Go up one level in this thread


Hi

AFAIK, the function clock() measures time only in units of 1/CLOCKS_PER_SEC
seconds, where CLOCKS_PER_SEC is defined in one of your header files. (eg time.h
under Cygwin) Under Cygwin this is set to 1000 which means that the accuracy is
only 1 millisecond - which is useless if you want to measure microseconds.

I guess that one of the Windows guys (assuming you're using M$VC) knows a better
function suited for this.

Sargon



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.