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.
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....?
Not too difficult to program one, Just a timer, a clock and an interrupt...
Your always welcome !