AceTimeClock  1.3.0
Clock classes for Arduino that can synchronize from an NTP server or an RTC chip
Static Public Member Functions | List of all members
ace_time::hw::ClockInterface Class Reference

A utility class that provides a layer of indirection to the Arduino clock functions (millis() and potentially micros() in the future). More...

#include <ClockInterface.h>

Static Public Member Functions

static unsigned long millis ()
 Get the current millis.
 

Detailed Description

A utility class that provides a layer of indirection to the Arduino clock functions (millis() and potentially micros() in the future).

Not to be confused with the ace_clock::clock::Clock base class.

This indirection allows injection of a different ClockInterface for testing purposes. Since this class uses non-virtual, static functions, the compiler will optimize away the function call.

Definition at line 24 of file ClockInterface.h.


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