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 Details

    • timestamp

      public final long timestamp
      Timestamp in local time base.
    • serverTime

      public final long serverTime
      Timestamp in server time base. May be 0 or 1 for locally set values.
    • value

      public final T value
      Value.
  • Constructor Details

    • TimestampedObject

      public TimestampedObject(long timestamp, long serverTime, T value)
      Create a timestamped value.
      Parameters:
      timestamp - timestamp in local time base
      serverTime - timestamp in server time base
      value - value