Package edu.wpi.first.networktables
Class TimeSyncEventData
java.lang.Object
edu.wpi.first.networktables.TimeSyncEventData
NetworkTables time sync event data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longMeasured round trip time divided by 2, in microseconds.final longOffset between local time and server time, in microseconds.final booleanIf serverTimeOffset and RTT are valid. -
Constructor Summary
ConstructorsConstructorDescriptionTimeSyncEventData(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
-