AceTime  0.3
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Public Member Functions | List of all members
ace_time::clock::SystemClockHeartbeatLoop Class Reference

A class that peridically freshens the SystemClock using the heartbeat call to getNow(). More...

#include <SystemClockHeartbeatLoop.h>

Public Member Functions

 SystemClockHeartbeatLoop (SystemClock &systemClock, uint16_t heartbeatPeriodMillis=5000)
 Constructor. More...
 
void loop ()
 Call this from the global loop() method to make SystemClock keep in sync with the system millis().
 

Detailed Description

A class that peridically freshens the SystemClock using the heartbeat call to getNow().

Call loop() from the global loop() method.

Definition at line 14 of file SystemClockHeartbeatLoop.h.

Constructor & Destructor Documentation

◆ SystemClockHeartbeatLoop()

ace_time::clock::SystemClockHeartbeatLoop::SystemClockHeartbeatLoop ( SystemClock systemClock,
uint16_t  heartbeatPeriodMillis = 5000 
)
inline

Constructor.

Parameters
systemClockthe underlying SystemClock
heartbeatPeriodMillismillis between calls to getNow() (default 5000)

Definition at line 23 of file SystemClockHeartbeatLoop.h.


The documentation for this class was generated from the following file: