From 0cb4b08d406caff8cd2081ddb09bceb74d4e3a16 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Jan 2025 12:25:03 +0100 Subject: MIDI bandwidth monitor --- UI.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'UI.h') diff --git a/UI.h b/UI.h index 02b0822..fa89c52 100644 --- a/UI.h +++ b/UI.h @@ -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 m_active_sensing_timestamp; -- cgit v1.2.3