Added one minute throttling to NodeDB save to disk (#3648)

* Added one minute throttling to NodeDB

* Derp
This commit is contained in:
Ben Meadors
2024-04-18 14:20:39 -05:00
committed by GitHub
co-authored by GitHub
parent 747c713ba9
commit 425a715995
5 changed files with 45 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
#pragma once
#include <cstddef>
#include <cstdint>
class Throttle
{
public:
static bool execute(uint32_t *lastExecutionMs, uint32_t minumumIntervalMs, void (*func)(void), void (*onDefer)(void) = NULL);
};