This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMDXIDK5718: Measuring processing time on A15

Part Number: TMDXIDK5718

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.