1 #ifndef ACE_TIME_SYSTEM_CLOCK_HEARTBEAT_COROUTINE_H 2 #define ACE_TIME_SYSTEM_CLOCK_HEARTBEAT_COROUTINE_H 5 #include "SystemClock.h" 26 uint16_t heartbeatPeriodMillis = 5000):
27 mSystemClock(systemClock),
28 mHeartbeatPeriodMillis(heartbeatPeriodMillis) {}
30 int runCoroutine()
override {
33 COROUTINE_DELAY(mHeartbeatPeriodMillis);
39 uint16_t
const mHeartbeatPeriodMillis;
acetime_t getNow() const override
Return the number of seconds since the AceTime epoch (2000-01-01T00:00:00Z).
SystemClockHeartbeatCoroutine(SystemClock &systemClock, uint16_t heartbeatPeriodMillis=5000)
Constructor.
A TimeKeeper that uses the Arduino millis() function to advance the time returned to the user...
A coroutine that calls SystemClock.getNow() peridically.