Author: Alexander Kure
Date: 02:19:39 08/08/00
Go up one level in this thread
Hi James,
#include <time.h>
clock_t start = clock();
// do what ever you want to measure
clock_t stop = clock() - start;
printf("Elapsed time in seconds: %.2f", (double) stop / CLOCKS_PER_SEC");
Function clock() returns the number of clock ticks of elapsed processor time for
the current process.
Greetings
Alex
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.