Can someone take a look and verify I am getting the proper results?
#include <stdio.h>
#include <time.h>
int main ( ) {
clock_t start, end;
int i;
long count;
count = 1000000;
start = clock();
printf( "Counting to %d\n", count );
for (i=0; i < count; i ++);
end = clock();
printf( "That took %d seconds and I counted up to %d", (end-start)/CLOCKS_PER_SEC, count );
printf( "\nThat also took %d clock tics\n ", clock());
return 0;
}
Thanks,
Mattz