Hi everyone, I have a c function which takes 14ms to execute. I was expecting it to take 10ms. I toggle a pin to determine times. What I found that if I set a pin high as the last line of this function and low after the function call it takes 3ms. This is much much longer than other functions. What determines this time?
An obvious answer is cpu clock frequency. But all things being equal, what function specific parameters?
In the past I have experimented with inline functions but they always seemed to function differently. Never understood why.
Any thoughts?