Class Timestamp

java.lang.Object
com.ctre.phoenix6.Timestamp

public class Timestamp
extends Object
Information about the timestamp of a signal.
  • Method Details

    • getTime

      public double getTime()
      Get the time in seconds as reported from this timestamp
      Returns:
      Time in seconds
    • getSource

      Get the source of this timestamp
      Returns:
      Source of this timestamp
    • getLatency

      public double getLatency()
      Get the latency of this timestamp compared to now
      Returns:
      Difference between now and this timestamp
    • isValid

      public boolean isValid()
      Returns if this Timestamp is valid or not.
      Returns:
      true when this is valid