title: CPU Frequency is varying for every new run
body: <p>I have used the following code to get the cpu frequency . </p>
  
  <pre><code>-(int) returnCPUFreq
  {
      size_t length;
      int mib[6];
      int result;
  
      mib[0] = CTL_HW;
      mib[1] = HW_CPU_FREQ;
      length = sizeof(result);
  
      sysctl(mib, 2, &amp;result, &amp;length, NULL, 0);
  
      return  result;
  }
  </code></pre>
  
  <p>It is giving the 6 digits code and it is varying for every time when I run the app . i.e the output is first time 644311 , second time 303921 ..... </p>
  
  <p>Is this code correct ? Is the values vary for everytime when I run the app?  </p>