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!