Go to the documentation of this file.
8 #ifndef ecl_time_TIME_FREQUENCY_DIAGNOSTICS_HPP_
9 #define ecl_time_TIME_FREQUENCY_DIAGNOSTICS_HPP_
31 struct FrequencyDiagnostics {
92 const float& window_period = 2.0,
ecl::TimeStamp last_incoming
void update()
Let the diagnostics know that new data has arrived.
ecl::TimeStamp minimum_interval
ecl::TimeStamp maximum_interval
const FrequencyDiagnostics & analyse()
Analyse the recent updates to generate monitoring statistics.
const FrequencyDiagnostics & diagnostics() const
Diagnostics getter function.
Data relevant to frequencies of an incoming stream.
Cross-platform header inclusions for the timestamp class.
FrequencyMonitor(const float &window_period=2.0, const bool &use_realtime_clock=false)
Setup the frequency monitor.
unsigned int incoming_counter
ecl::TimeStamp last_anyalsed
Lightweight and fast frequency monitor.
Embedded control libraries.
FrequencyDiagnostics current_diagnostics
ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19