diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-11 12:25:03 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-11 12:25:03 +0100 |
commit | 0cb4b08d406caff8cd2081ddb09bceb74d4e3a16 (patch) | |
tree | 0e62390844d862eb7d2ce456ceea4f49890cd07a /UI.h | |
parent | 171aa5502cfcac1abc5315c8792521790195e4a9 (diff) |
MIDI bandwidth monitor
Diffstat (limited to 'UI.h')
-rw-r--r-- | UI.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,7 +18,7 @@ struct IntervalCounter public: IntervalCounter(); int get_count_per_second(); - void count(); + void count(uint64_t n = 1); private: uint64_t m_count{}; @@ -46,7 +46,7 @@ public: // slots void count_main_loops(); - void count_midi_events(); + void count_midi_events(size_t size); void count_midi_notes(); void slot_active_sensing(); void slot_midi_note(int channel, int note, uint64_t timestamp); @@ -58,6 +58,7 @@ private: IntervalCounter m_main_loops; IntervalCounter m_midi_events; + IntervalCounter m_midi_bytes; IntervalCounter m_midi_notes; std::chrono::time_point<clock_type> m_active_sensing_timestamp; |