How to get CPU clock speed in P2020?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to get CPU clock speed in P2020?

614 次查看
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 回复

406 次查看
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 项奖励