Clock Frequency not getting fixed

Re: Clock Frequency not getting fixed

by Georg Hager -
Number of replies: 0

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.