Class Timestamp

java.lang.Object
com.ctre.phoenixpro.Timestamp

@Deprecated(forRemoval=true)
public class Timestamp
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.
Information about the timestamp of a signal.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Timestamp.TimestampSource
    Deprecated, for removal: This API element is subject to removal in a future version.
    Classes in the phoenixpro package will be removed in 2024.
  • Method Summary

    Modifier and Type Method Description
    double getLatency()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the latency of this timestamp compared to now
    Timestamp.TimestampSource getSource()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the source of this timestamp
    double getTime()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the time in seconds as reported from this timestamp
    boolean isValid()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns if this Timestamp is valid or not.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getTime

      public double getTime()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the time in seconds as reported from this timestamp
      Returns:
      Time in seconds
    • getSource

      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the source of this timestamp
      Returns:
      Source of this timestamp
    • getLatency

      public double getLatency()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the latency of this timestamp compared to now
      Returns:
      Difference between now and this timestamp
    • isValid

      public boolean isValid()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns if this Timestamp is valid or not.
      Returns:
      true when this is valid