Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: clock()

Author: James Robertson

Date: 16:39:53 01/31/00

Go up one level in this thread


On January 31, 2000 at 16:12:38, Peter Fendrich wrote:

>We had a thread about this a week or two ago.
>clock() isn't doing what it is said to do (at least Ms C++).
>If you have NT, use GetProcessTimes() or GetThreadTimes() instead.
>//Peter

Thanks very much. I'll try this out. :)

James

>
>On January 31, 2000 at 11:13:49, James Robertson wrote:
>
>>I am trying to get my program to compute the cpu % used under windows, and was
>>hoping I could simple divide the time returned by clock() (supposedly the cpu
>>time) by GetTickCount() (the wall clock time). Unfortunately, _both_ functions
>>return wall clock time. What function instead of clock() should I use to find
>>the cpu time used?
>>
>>Thanks,
>>James



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.