Next: Predefined Timers, Previous: Predefined Clocks, Up: Predefined Calculations [Contents][Index]
A chronometer is a device used to measure time. It is an
specialization of the micro_benchmark_meter
type used to
calculate the sample time and the total time (see Chronometer Reference for a detailed description.)
The following chronometers are implemented by the library:
Realtime chronometer based on the the C standard type time_t
,
retrieved from time
function. It represents seconds, so its
minimum resolution is one second.
Process time chronometer based on the C standard type clock_t
,
retrieved from clock
function. It overflows easily; this is
not checked by the framework.
Realtime chronometer based on the function gettimeofday
. Its
values are represented by struct timeval
.
Chronometer based on the function clock_gettime
. Its minimum
theoretical resolution is calculated based on the clock type selected
(see Time Reference.) Its values are represented by struct
timespec
.