1 #ifndef ACE_TIME_TIME_PROVIDER_H 2 #define ACE_TIME_TIME_PROVIDER_H 5 #include "../common/common.h" 16 static const acetime_t kInvalidSeconds = INT32_MAX;
25 virtual acetime_t
getNow()
const = 0;
virtual acetime_t readResponse() const
Returns number of seconds since AceTime epoch (2000-01-01).
virtual void sendRequest() const
Send a time request asynchronously.
virtual ~TimeProvider()
Virtual destructor.
virtual acetime_t getNow() const =0
Return the number of seconds since the AceTime epoch (2000-01-01T00:00:00Z).
virtual bool isResponseReady() const
Return true if a response is ready.
Base class for objects that provide a source of time whose time cannot be changed by the end-user...