5 #include <Poco/Timer.h>
6 #include <Poco/Timespan.h>
8 #include "util/Loggable.h"
20 typedef std::function<void()> Callback;
28 void start(
const Callback &callback);
44 void onStart(Poco::Timer &timer);
47 Poco::TimerCallback<PeriodicRunner> m_invoke;
49 Poco::Timespan m_interval;
void setInterval(const Poco::Timespan &interval)
Definition: PeriodicRunner.cpp:32
void stop()
Definition: PeriodicRunner.cpp:27
void start(const Callback &callback)
Definition: PeriodicRunner.cpp:18
Executes some function periodacally based on the given interval.
Definition: PeriodicRunner.h:18
Definition: Loggable.h:19