Hi
I want to measure code execution time on RM48 HDK. Is there any sample code available?
I am doing the following using RTI but not sure if its correct:
rtiInit();
rtiStartCounter(0);
time1 = rtiGetCurrentTick(rtiCompare0); // Compare0 is default as set in HalCoGen
// execute code to be bench marked
time2 = rtiGetCurrentTick(rtiCompare0); // Compare0 is default as set in HalCoGen
time_elapsed = time2 - time1;
If its correct, then with what cycle time should time_elapsed be multiplied to get the time. And what rtiCompare (0, 1, 2, 3) should be used.
Thanks
Anila
Regards
Anila