ChibiOS  21.6.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 79 of file chtm.h.

Field Documentation

◆ best

rtcnt_t time_measurement_t::best

Best measurement.

Definition at line 80 of file chtm.h.

Referenced by __tm_calibration_object_init(), and chTMObjectInit().

◆ worst

rtcnt_t time_measurement_t::worst

Worst measurement.

Definition at line 81 of file chtm.h.

Referenced by chTMObjectInit().

◆ last

rtcnt_t time_measurement_t::last

Last measurement.

Definition at line 82 of file chtm.h.

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

◆ n

ucnt_t time_measurement_t::n

Number of measurements.

Definition at line 83 of file chtm.h.

Referenced by chTMObjectInit().

◆ cumulative

rttime_t time_measurement_t::cumulative

Cumulative measurement.

Definition at line 84 of file chtm.h.

Referenced by chTMObjectInit().