template<typename T = float, size_t Bins = 2, typename Count = uint_fast32_t>
class zth::EventRate< T, Bins, Count >
Measure the rate of some event in Hz.
It counts events in bins, all with a contructor-provided (window) duration. When the count reaches about one per bin, there is significat jitter on the rate measurement. When the count is higher, the jitter is +/- 1 for a stable event rate.
The measurement is done regardless of the precision of clock_gettime(). It is fine to have events with 0 time in between.
Definition at line 491 of file perf.h.