Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: clock() in background

Author: Peter Fendrich

Date: 16:32:30 01/25/00

Go up one level in this thread


On January 25, 2000 at 19:02:51, Ernst A. Heinz wrote:

>On January 25, 2000 at 18:56:37, Peter Fendrich wrote:
>
>>I tried to use the clock() function (in NT4) and it didn't behave as I expected
>>it to.
>>It is said to "Return elapsed CPU time for current process".
>>I hoped to be able to run performance tests with my chess program in the
>>background while doing other things in the foreground and yet get the same
>>results.
>>The clock() is definitely affected by other processes so I get very varied
>>results depending on what I'm doing in the foreground.
>>
>>How come?
>>
>>//Peter
>
>Maybe, clock() works fine but your program is very sensitive to any
>cache and/or memory disturbances caused by running other programs with
>high priority.

I see, and it's much more sensitive than I could ever imagine.
Lower priorities to the other programs doesn't seem to help that much.
In that case the clock() function is not very useful to me... :(

//Peter



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.