7 printf("\nStarting Test\n");
8 time_t startTime = clock();
13 for (i = 0; i < 20000000; i ++)
19 time_t endTime = clock();
21 printf("%ld\n", j); // prevent loop being optimized out
22 printf("Finished Test\n");
23 double timeSpent = (double)(endTime - startTime) / CLOCKS_PER_SEC;
24 printf("seconds taken: %f\n", timeSpent);