i = temp; // Just to suppress the compiler warning for not using temp and gen
if(counter < 10000000)
printf("ERROR: Too few accesses. You have to access more elements to measure reasonable time difference.\n");
if((time/counter) < 1.0e-8)
printf("ERROR: Time per access is too small. You have to further deoptimize the program to measure reasonable time difference.\n");
printf("Traversing %lx GB array took total time = %.4g seconds, number of accesses = %lu, %.4g seconds per access\n", SIZE/GB, time, counter, time/counter);