Computer Chess Club Archives


Search

Terms

Messages

Subject: Win32 based timer for anyone who wants to muck with one

Author: Dann Corbit

Date: 20:38:18 02/23/00


It is a public domain C++ class.  Here it is:
ftp://38.168.214.175/pub/TIMER.ZIP

I would like to get any improvements/repairs that you make (if you don't mind).

Seems a lot of people have a hard time coming up with a timer for C++.

This one is intended to do timing as accurately as possible.  That is, it will
use the high resolution timer if your system has one, and GetTickCount() if not.

In case of overflow, it trys a panic measure of time() difference, but that will
give a resolution of only one second.

I could probably add another member function to change overflow behavior.



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.