Use the Stopwatch

Use the stopwatch to determine the timing between two breakpoints.

To use the Stopwatch:

  1. 1.Add a breakpoint where you want to start the stopwatch.
  2. 2.Add another breakpoint where you want to stop the stopwatch.
  3. 3.Select Window>Debugging>Stopwatch. Click on the Properties icon on the left of the window and select the start and stop breakpoints.
  4. 4.Debug the program again to get the stopwatch timing result.
    Figure 1. Stopwatch Setup
    Figure 2. Stopwatch Window with Content

The stopwatch has the following icons on the left side of the window:

Table 1. Stopwatch Icons
Icon Icon Text Description
Properties Set stopwatch properties. Select one current breakpoint or trigger to start the stopwatch and one to stop the stopwatch.
Reset Stopwatch on Run Reset the stopwatch time to zero at the start of a run.
Clear History Clear the stopwatch window.
Clear Stopwatch (Simulator Only) Reset the stopwatch after you reset the device.