Computer Chess Club Archives


Search

Terms

Messages

Subject: clock() function in c++

Author: macaroni

Date: 15:16:23 10/28/03


I have been using the clock() c++ function in my timeout function. However, I
have noticed that occasionally my program doesn't think for nearly as long as it
should, and moves even before it has a legal ply 1 move to play. I have narrowed
it down to the timeout function, but can't understand why it doesn't work...does
the clock() function ever 'turnover' and go back to 0, if so, how frequently?
could this be the cause of the problem, and if so, what can I do about it?
cheers



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.