Author: J. Wesley Cleveland
Date: 13:01:33 04/19/01
Go up one level in this thread
On April 18, 2001 at 17:21:46, Dan Newman wrote: > >I used to use clock(), but more recently I've been using a Windows API >call, QueryPerformanceCounter(), which gives a much higher resolution. >Its resolution depends on the hardware involved--it can be sub- >microsecond. The documentation implies that the hardware timer on >which it depends isn't available on all systems, so it might not work >yours--but I'd be surprised if it didn't. You use another function, >QueryPerformanceFrequency(), to find out if the timer exists and what >its resolution is. > AFAIK, QueryPerformanceCounter is supported on all x68 windows, Pentium and later processors use the built-in cycle counter and have resolution of one CPU cycle, older processors use the timer chip and have resolution of ~ 1uS.
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.