diff --git a/mainwindow.h b/mainwindow.h --- a/mainwindow.h +++ b/mainwindow.h @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -93,6 +94,11 @@ private: bool skipByteRequested; + const int SPS_UPDATE_TIMEOUT = 1; // second + QLabel spsLabel; + unsigned int sampleCount; + QTimer spsTimer; + // demo QTimer demoTimer; int demoCount; @@ -119,6 +125,8 @@ private slots: void clearPlot(); + void spsTimerTimeout(); + void demoTimerTimeout(); void enableDemo(bool enabled);