WPILibC++ 2024.3.2
|
NetworkTables time sync event data. More...
#include <ntcore_cpp.h>
Public Member Functions | |
TimeSyncEventData ()=default | |
TimeSyncEventData (int64_t serverTimeOffset, int64_t rtt2, bool valid) | |
Public Attributes | |
int64_t | serverTimeOffset |
Offset between local time and server time, in microseconds. More... | |
int64_t | rtt2 |
Measured round trip time divided by 2, in microseconds. More... | |
bool | valid |
If serverTimeOffset and RTT are valid. More... | |
NetworkTables time sync event data.
|
default |
|
inline |
int64_t nt::TimeSyncEventData::rtt2 |
Measured round trip time divided by 2, in microseconds.
int64_t nt::TimeSyncEventData::serverTimeOffset |
Offset between local time and server time, in microseconds.
Add this value to local time to get the estimated equivalent server time.
bool nt::TimeSyncEventData::valid |
If serverTimeOffset and RTT are valid.
An event with this set to false is sent when the client disconnects.