BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <Occasionally.h>
Public Member Functions | |
Occasionally (unsigned int max=1000, const Poco::Timestamp::TimeDiff delayMax=0) | |
void | execute (const std::function< void()> &func) |
Helper providing occasional execution of some command. E.g. we want to log some events but not every time we execute the call. This class wraps a sampling capability that provides just occasional calls.