#ifndef SF_DAQ_BUFFER_SYNCSTATS_HPP #define SF_DAQ_BUFFER_SYNCSTATS_HPP #include #include #include class SyncStats { const std::string detector_name_; const size_t stats_time_; int image_counter_; int n_sync_lost_images_; std::chrono::time_point stats_interval_start_; void reset_counters(); void print_stats(); public: SyncStats(const std::string &detector_name, const size_t stats_time); void record_stats(const uint32_t n_lost_pulses); }; #endif //SF_DAQ_BUFFER_SYNCSTATS_HPP