Everything
2.16.2.1 Set a Timer Result event

To set a Timer Result event, set a timer start event and a timer end event that starts/stops a timer measurement.

Use one of the following methods to set a timer start event and a timer end event.

(1)

For execution-related events

The execution time of a desired section can be measured by setting execution-related events as timer start and end events.

Perform this operation in the Editor panel/Disassemble panel in which the source text/disassembled text is displayed.

Follow the operation listed below from the context menu, in accordance with your desired event type, after moving the caret to the target line that has a valid address.

Event Type

Operation

Timer start

Select [Timer Settings] >> [Start Timer] >> [Set Timer nNote]

Timer end

Select [Timer Settings] >> [Stop Timer] >> [Set Timer nNote]

Note

[Simulator]
Select the channel number (n: 1 to 8) in which a Timer Result event is set.
[Full-spec emulator][E1][E20]
Select the channel number (n: 1 to 3) in which a Timer Result event is set for each core.

Caution

The time for a timer end event will not included in the measurement results. For this reason, set a timer end event to one line below the range for which you wish to measure the run time.

 

A timer start event or a timer end event is set to the instruction at the start address corresponding to the line of the caret position.

Once a timer start event or a timer end event is set, the following event mark is displayed in the event area of the line/address that an event is set.

Table 2.15

Event Marks of Timer Start Event/Timer End Event

Event Type

Event Mark

Timer start

 

Timer end

 

Figure 2.79

Timer Start and Timer End Events Setting Example (Disassemble Panel)

(2)

For access-related events

In this product version, this function is not supported.

 

When a timer start event and a timer end event are set, they are managed collectively on the Events panel as one instance of a Timer Result event (see "2.20 Manage Events"). When you click the "+" mark at a Timer Result event item, detailed information on the timer start event and the timer end event you have set is displayed.

Figure 2.80

Example of Timer Start and Timer End Events (Execution Type) in Events Panel [Simulator]

Figure 2.81

Example of Timer Start and Timer End Events (Execution Type) in Events Panel [Full-spec emulator][E1][E20]

Remark

Event marks differ depending on the event state (see "2.20.1 Change the state of set events (valid/invalid)").
When an event is set at the point which other event is already set, the event mark ( ) is displayed meaning more than one event is set at the point.

Caution 1.

[Full-spec emulator][E1][E20]
Timer measurement can be performed with even only one setting: a timer start event or a timer end event. When only a timer start event is set, timer measurement is terminated when program execution stops. When only a timer end event is set, timer measurement is started when program execution starts.

Caution 2.

[Simulator]
Timer measurement is enabled when both a timer start event and a timer end event have been set. Therefore, timer measurement cannot be performed with only one setting: a timer start event or a timer end event.