Package edu.wpi.first.networktables
Class TimestampedObject<T>
java.lang.Object
edu.wpi.first.networktables.TimestampedObject<T>
- Type Parameters:
T
- Value type.
public final class TimestampedObject<T> extends Object
NetworkTables timestamped object.
-
Field Summary
Fields Modifier and Type Field Description long
serverTime
Timestamp in server time base.long
timestamp
Timestamp in local time base.T
value
Value. -
Constructor Summary
Constructors Constructor Description TimestampedObject(long timestamp, long serverTime, T value)
Create a timestamped value. -
Method Summary
-
Field Details
-
timestamp
Timestamp in local time base. -
serverTime
Timestamp in server time base. May be 0 or 1 for locally set values. -
value
Value.
-
-
Constructor Details
-
TimestampedObject
Create a timestamped value.- Parameters:
timestamp
- timestamp in local time baseserverTime
- timestamp in server time basevalue
- value
-