AceTime  0.1
Date and time classes for Arduino that supports the TZ DAtabase, and a system clock synchronized from an NTP server or an RTC chip.
Public Member Functions | List of all members
ace_time::provider::SystemTimeHeartbeatLoop Class Reference

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

#include <SystemTimeHeartbeatLoop.h>

Public Member Functions

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

Detailed Description

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

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

Definition at line 14 of file SystemTimeHeartbeatLoop.h.

Constructor & Destructor Documentation

ace_time::provider::SystemTimeHeartbeatLoop::SystemTimeHeartbeatLoop ( SystemTimeKeeper systemTimeKeeper,
uint16_t  heartbeatPeriodMillis = 5000 
)
inline

Constructor.

Parameters
systemTimeKeeperthe underlying SystemTimeKeeper
heartbeatPeriodMillismillis between calls to getNow() (default 5000)

Definition at line 23 of file SystemTimeHeartbeatLoop.h.


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