7

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?

Jainendra
  • 24,713
  • 30
  • 122
  • 169

2 Answers2

6

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

Miguel Rivero
  • 1,436
  • 14
  • 11
1

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.

Neil Townsend
  • 6,024
  • 5
  • 35
  • 52