6 #ifndef ACE_TIME_CLOCK_H 7 #define ACE_TIME_CLOCK_H 10 #include "../common/common.h" 11 #include "../LocalTime.h" 35 virtual acetime_t
getNow()
const = 0;
static const acetime_t kInvalidSeconds
An invalid seconds marker that indicates isError() true.
virtual bool isResponseReady() const
Return true if a response is ready.
virtual void setNow(acetime_t)
Set the time to the indicated seconds.
virtual void sendRequest() const
Send a time request asynchronously.
virtual ~Clock()
Virtual destructor.
Base class for objects that provide and store time.
virtual acetime_t readResponse() const
Returns number of seconds since AceTime epoch (2000-01-01).
virtual acetime_t getNow() const =0
Return the number of seconds since the AceTime epoch (2000-01-01T00:00:00Z).