Anonymous
Not applicable
Jun 04, 2014
05:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2014
05:13 AM
Hi all,
Is there a way to calculate the execution time of a routine or part of a program (between two breakpoints)? Such as a stopwatch or so?
I hope anyone can help!
Rob
4 Replies
Jun 04, 2014
05:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2014
05:42 AM
A simple way is use a scope, and flip a pin at start and end of code segment
of interest. Or use a counter with a know period, and read it at start then again
at stop of code segment, and subtract the two readings.
Or you can look at .lst file and count code cycles, tedious.
Regards, Dana.
Anonymous
Not applicable
Jun 04, 2014
07:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2014
07:52 AM
Thanks Dana,
Then I will use the scope method.
In MPLAB (PIC IDE) there is a stopwatch available, very easy to use. Maybe an idea for Creator....?
Thanks!
Rob
Jun 04, 2014
08:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2014
08:27 AM
Not too difficult to program one, Just a timer, a clock and an interrupt...
Bob
Jun 04, 2014
09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 04, 2014
09:28 AM
Your always welcome !
Dana.