AnsweredAssumed Answered

How to measure time taken by a function

Question asked by la lal on Jun 15, 2018
Latest reply on Jun 15, 2018 by Mike Doidge



I need to measure the number of cycles or execution time spent on a function. I tried to use the normal clock() function after including the <time.h> library and got errors and i'm starting to think that using the clock() function won't lead to any results.


I am a beginner and i would appreciate any help or hint possible.

I'm using the S32 Design Studio for ARM along with the S32K144 EVB.