Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Another time question

Author: Amir Ban

Date: 06:02:41 12/10/97

Go up one level in this thread


On December 09, 1997 at 18:42:30, Don Dailey wrote:

>On December 09, 1997 at 16:32:46, John Bartkiw wrote:
>
>>This one is a little less chess oriented but it is in a round about way.
>>Is there anyway in ANSI C to get a more accurate clock reading than in
>>seconds?  The only time functions I can find return seconds.  I'd like
>>to try to get more accurate than this if I can.
>>
>>Thanks.
>
>You can use clock() also, but beware.  It can wrap around on
>long timings on fast hardware.  It gives
>process time on most OS's, not wall clock time.  I have used it before
>because it's fairly accurate when various jobs and users are on the
>machine and is a little easier to use than the other c time functions.
>
>-- Don


clock() is not ANSI according to the information I have.

Amir



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.