Tool/software: Code Composer Studio
I am creating a boot program for MPU (A15) using "TMDXIDK5718".
I want to measure the processing time of a function in a program.
I tried the following code, but the return value of the “clock” function was always “0xFFFFFFFF”.
clock_t start = clock(); func(); clock_t end = clock();
I think I should use the "Performance Monitor Count" register.
But I don't know what code to write.
Could you provide a sample code like the one above?
Thank you.