WPILibC++ 2023.4.3
NT_TimeSyncEventData Struct Reference

NetworkTables time sync event data. More...

#include <ntcore_c.h>

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...
 
NT_Bool valid
 If serverTimeOffset and RTT are valid. More...
 

Detailed Description

NetworkTables time sync event data.

Member Data Documentation

◆ rtt2

int64_t NT_TimeSyncEventData::rtt2

Measured round trip time divided by 2, in microseconds.

◆ serverTimeOffset

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.

◆ valid

NT_Bool NT_TimeSyncEventData::valid

If serverTimeOffset and RTT are valid.

An event with this set to false is sent when the client disconnects.


The documentation for this struct was generated from the following file: