Package edu.wpi.first.networktables
Class TimeSyncEventData
java.lang.Object
edu.wpi.first.networktables.TimeSyncEventData
public final class TimeSyncEventData extends Object
NetworkTables time sync event data.
-
Field Summary
Fields Modifier and Type Field Description long
rtt2
Measured round trip time divided by 2, in microseconds.long
serverTimeOffset
Offset between local time and server time, in microseconds.boolean
valid
If serverTimeOffset and RTT are valid. -
Constructor Summary
Constructors Constructor Description TimeSyncEventData(long serverTimeOffset, long rtt2, boolean valid)
Constructor. -
Method Summary
-
Field Details
-
serverTimeOffset
Offset between local time and server time, in microseconds. Add this value to local time to get the estimated equivalent server time. -
rtt2
Measured round trip time divided by 2, in microseconds. -
valid
If serverTimeOffset and RTT are valid. An event with this set to false is sent when the client disconnects.
-
-
Constructor Details
-
TimeSyncEventData
Constructor. This should generally only be used internally to NetworkTables.- Parameters:
serverTimeOffset
- Server time offsetrtt2
- Round trip time divided by 2valid
- If other parameters are valid
-