ChibiOS/RT  5.1.0
time_measurement_t Struct Reference

Type of a Time Measurement object. More...

#include <chtm.h>

Collaboration diagram for time_measurement_t:
Collaboration graph

Data Fields

rtcnt_t best
 Best measurement. More...
 
rtcnt_t worst
 Worst measurement. More...
 
rtcnt_t last
 Last measurement. More...
 
ucnt_t n
 Number of measurements. More...
 
rttime_t cumulative
 Cumulative measurement. More...
 

Detailed Description

Type of a Time Measurement object.

Note
The maximum measurable time period depends on the implementation of the realtime counter and its clock frequency.
The measurement is not 100% cycle-accurate, it can be in excess of few cycles depending on the compiler and target architecture.
Interrupts can affect measurement if the measurement is performed with interrupts enabled.

Definition at line 72 of file chtm.h.

Field Documentation

rtcnt_t time_measurement_t::best

Best measurement.

Definition at line 73 of file chtm.h.

Referenced by chTMObjectInit().

rtcnt_t time_measurement_t::worst

Worst measurement.

Definition at line 74 of file chtm.h.

Referenced by chTMObjectInit().

rtcnt_t time_measurement_t::last

Last measurement.

Definition at line 75 of file chtm.h.

Referenced by _tm_init(), chTMChainMeasurementToX(), chTMObjectInit(), and chTMStartMeasurementX().

ucnt_t time_measurement_t::n

Number of measurements.

Definition at line 76 of file chtm.h.

Referenced by chTMObjectInit().

rttime_t time_measurement_t::cumulative

Cumulative measurement.

Definition at line 77 of file chtm.h.

Referenced by chTMObjectInit().