AnsweredAssumed Answered

Measuring clock cycles with MPC5744P

Question asked by Kshitij Dadhekar on Jun 29, 2020
Latest reply on Jul 2, 2020 by Peter Vlna

Hello,

I have a function and I need to measure the near exact number of processor cycles it takes to execute. I am able to measure the time in microseconds with a PIT timer on the MPC5744P, but I was not able to find a high-level function/utility in the SDK PA RTM 3.0.0 which can measure the processor cycles. More importantly, I would like to see how various compiler optimizations settings affect the processor cycles taken for executing. Any help would be really appreciated!  

 

Thanks,

Kshitij Dadhekar

Outcomes