Everything

csplus.get_time_measurement_result


This function gets the result of measurement by the specified timer.

[Specification format]

csplus.get_time_measurement_result(session_id, timer_name)

[Argument(s)]

Argument

Description

session_id

This argument is ignored in this version.

timer_name

The name of the timer from which to get the result of measurement is specified.

[Return value]

A list of the stored result of measurement is returned. The results of measurement are stored in the format time_value,time_unit,measurement_method,overflow.

Value

Description

time_value

Value of the result of measurement

time_unit

Unit of the result of measurement (ns)

measurement_method

Source for counting by the timer (Emulator or Simulator)

overflow

Flag to indicate whether an overflow has occurred (true or false)

[Detailed description]

-

This function gets the result of measurement by the specified timer.

[Example of use]

>>> csplus.get_timer_providers()
{'csplus.timer': 'Time Measurement'}
>>> csplus.select_timer_provider("csplus.timer")
>>> csplus.is_timer_supported('0')
True
>>> csplus.get_timers('0')
['Timer1']
>>> csplus.resume_debug_session('0')
>>> csplus.get_time_measurement_result('0', "Timer1")
['279667','ns','Simulator','false']