I measured the cpu time spent by some code using:
double start_clock = clock();
// some code
double end_clock = clock();
total_clock = (end_clock-start_clock)/CLOCKS_PER_SEC;
printf("%f",total_clock);
This prints out: 255.750000. What is this? My code took only 33 seconds (manually measured) to finish, so, where does 255 come from?
Idea: may it be because I have 8 threads running in parallel on a quadcore (which has 8 hardware thread)? 33*8 = 264 which is similar to 255.