Hello,
I am fixing the clock frequency using --cpu-freq option to 2000000. But, when I try to print the macro "CLOCKS_PER_SEC" in C++, It shows 1e+06 only. Am I missing something ?
Appreciate your help.
Regards
Shanur
Dear Shanur,
the CLOCKS_PER_SEC macro only tell you how many "ticks" the C++ clock makes per second (the "clock granularity" if you want to call it that). This is implementation dependent and has nothing to do with the actual clock frequency of the CPU.
We will show you later how you can measure the actual clock frequency while your program is running.
Best,
Georg.