Fetch CPU current speed
<p>I'm supposed to calculate the battery consumption of each and every application. For this i'm considering fetching CPU details as the first step. I've got the CPU usage per application. Now I think i might need the current CPU frequency per application. I tried using the following code: </p>

<p>"/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"</p>

<p>Its giving me the maximum frequency of the CPU at anytime.
Is there any possibility of fetching this information programatically?? Please help some one.</p>
