I want to measure the execution time of a function that uses a lot of math. If I would have the board here I will just toggle a GPIO line to measure the time with an oscilloscope. But right now I cannot do this. The second option that comes in mind is to use the stopwatch of the simulator. Of course I need to compile in debug mode in order to catch the breakpoints placed at the begin and at the end of the function.
The question is: how reliable could be this value?
I have hundreds of trigonometrics functions and I'm afraid about the compilation in debug mode: does this mode alter the time-execution of such a functions?