Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: clock() in background

Author: Ernst A. Heinz

Date: 18:28:29 01/25/00

Go up one level in this thread


On January 25, 2000 at 20:59:47, Tom Kerrigan wrote:

>With all due respect to Ernst and Dann, I think they're wrong.
>
>Context switches will hurt your program, but not very much.
>
>If you use clock() in Linux to time your program, you will [almost] always get
>exactly the same numbers, regardless of what else the computer is doing.
>
>I think NT is not designed to keep track of how much time each process uses, so
>it would be impossible for an NT clock() function to work correctly. I don't
>know what it returns, but I'm pretty sure that it isn't the elapsed time for
>the process.
>
>-Tom

Tom, I am no NT guru but I cannot believe your suspicion.

This would mean that NT inherently breaks the ANSI C standard.

=Ernst=



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.