How can I get processor speed of an Android device in MHz? I'm able to get the speed in terms of BogoMips by reading \proc\cpuinfo
file. How can I convert BogoMips to MHz or is there any other way to get the speed in MHz?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You have the maximum processor speed (in Hz) into the file:
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
For instance, the content of that file in my Samsung Galaxy Ace is :
832000
回答2:
The wikipedia page on BogoMips (http://en.wikipedia.org/wiki/BogoMips) gives a table providing a rough way of estimating between processor clock and bogoMips given the type of processor.