how to calculate elapse time in second.ms of function
Posted: Sat Oct 30, 2004 7:49 am
how to calculate elapse time in seconds.ms of my function. I need to calculate this time for my documentacion. Any know the solution.
Thank you very much!!
Best Regards,
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sat Oct 30, 2004 8:23 am
If you use the simulator, you can set break points at the start and end and then use the stopwatch under the debugger menu.
Another approach us to toggle a pin during the function and measure the time with an o-scope.
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Sat Oct 30, 2004 3:35 pm
Another approach is to go through the code in the .LST file and calculate the exact time it takes for the function to complete. Tedious but precise. This link should be of help:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum