* CommonCLI: added "clear stats" command

This commit is contained in:
Scott Powell committed 2025-05-13 18:12:58 +10:00
1 parent 16df8c33a2
commit 2fef457f32
9 files changed
+29 -2

No files matched your search

+4
View File
@@ -156,6 +156,10 @@ public:
uint32_t getNumSentDirect() const { return n_sent_direct; }
uint32_t getNumRecvFlood() const { return n_recv_flood; }
uint32_t getNumRecvDirect() const { return n_recv_direct; }
void resetStats() {
n_sent_flood = n_sent_direct = n_recv_flood = n_recv_direct = 0;
_err_flags = 0;
}
// helper methods
bool millisHasNowPassed(unsigned long timestamp) const;