#pragma once #include #include #include class BPMDetect { public: BPMDetect(int divider); void receive_event(); // signal boost::signals2::signal signal_bpm; private: using clock_type = std::chrono::high_resolution_clock; using time_point = std::chrono::time_point; const int m_divider; int m_count; std::deque m_timestamps; };