In Mplab there is a stopwatch window, when simulator is enabled. Put a break point at where it is to start, and then one for the end. When you run it and it stops at the first, zero the counter. Now push run again and when it stops on the next break, the watch will show the time in cycles and secs.
Kent