![]() |
NDEVR
API Documentation
|
A request to get the time from the network. More...
Public Member Functions | |
| void | errorOccurredSignal (int error) |
| Emitted when an error occurs, with the error code. | |
| void | finishedSignal () |
| Emitted when the time request has finished. | |
| TimeSpan | localClockOffset () const |
| Calculates the offset between the local clock and the server clock. | |
| TimeSpan | roundTripDelay () const |
| Calculates the round-trip delay of the time request. | |
| virtual Time | rxTime () const =0 |
| Returns the time the response was received. | |
| virtual Time | serverTime () const =0 |
| Returns the time reported by the server. | |
| virtual Time | txTime () const =0 |
| Returns the time the request was transmitted. | |
|
inline |
Calculates the offset between the local clock and the server clock.
Definition at line 123 of file ItemDownloader.h.
References rxTime(), serverTime(), and txTime().
|
inline |
Calculates the round-trip delay of the time request.
Definition at line 115 of file ItemDownloader.h.
|
pure virtual |
Returns the time the response was received.
Implemented in NtpClient.
Referenced by localClockOffset(), and roundTripDelay().
|
pure virtual |
Returns the time reported by the server.
Implemented in NtpClient.
Referenced by localClockOffset().
|
pure virtual |
Returns the time the request was transmitted.
Implemented in NtpClient.
Referenced by localClockOffset(), and roundTripDelay().