How to get CPU clock speed in P2020?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to get CPU clock speed in P2020?

1,085件の閲覧回数
selvamt
Contributor I

Hi Team,

Is there any C function or API available to get the CPU clock speed?

As of now, i am using a command "cat /proc/cpuinfo" to get CPU clock speed.

I am looking for a API to get clock speed at run time in my application. Please suggest.

Thanks & Regards,

Selvam

ラベル(1)
0 件の賞賛
返信
1 返信

877件の閲覧回数
lunminliang
NXP Employee
NXP Employee

See technical support enginner comment below:

/proc/cpuinfo is a pseudo-file. A userland application can open it as a regular file for reading, read it in and parse to establish the current CPU clock rate.

0 件の賞賛
返信