I want to measure the Duration of a code function, eg :
ForceAD = filtInputs(ForceAD);
I set breakpoint then F5 to run the program until stop at breakpoint. Write down 1st Tick Then press F10 to execute that single command. When done, write down 2nd Tick
Subtract 1st Tick and 2nd Tick I got the duration.
Is there a programming way to do this like debug user command ? so that I can measure this by 1 command call from Keil command window then it will execute that single code function and give out the duration in the command window of Keil-C
Thanks !