Not when you're this tired it's not.
Originally Posted by zacs7
Ah, it finally finished, and I finally got something other than 0.
Which is clearly wrong, because I drove to the store while it was running for ~45 minutes or more.
int main ( void )
clock_t start, end;
unsigned int x=1;
/* Start the timer */
start = clock();
while( x++ )
putchar( '.' );
printf ( "Please wait a few moments and hit return\n" );
/* End the timer */
end = clock();
/* Print out the difference */
printf ( "The interval was: %f seconds\n",
(double)(( end - start ) / (double)CLOCKS_PER_SEC ) );
printf ( "start %d, end %d, CLOCKS_PER_SEC %d\n", start, end, CLOCKS_PER_SEC );
....four billion.....Please wait a few moments and hit return
The interval was 395.422000 seconds
start 15, end 395437, CLOCKS_PER_SEC 1000