Class AllTimestamps
java.lang.Object
com.ctre.phoenix6.AllTimestamps
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the most accurate timestamp available.Gets the timestamp as reported by theTimestamp.TimestampSource.CANivoresource.Gets the timestamp as reported by theTimestamp.TimestampSource.Devicesource.Gets the timestamp as reported by theTimestamp.TimestampSource.Systemsource.
-
Constructor Details
-
AllTimestamps
public AllTimestamps()
-
-
Method Details
-
getBestTimestamp
Gets the most accurate timestamp available.The timestamp sources from most to least accurate are:
Note that some of these sources may not be available.- Returns:
- The most accurate timestamp available
-
getSystemTimestamp
Gets the timestamp as reported by theTimestamp.TimestampSource.Systemsource.- Returns:
- Timestamp as reported by the System
-
getCANivoreTimestamp
Gets the timestamp as reported by theTimestamp.TimestampSource.CANivoresource.- Returns:
- Timestamp as reported by the CANivore
-
getDeviceTimestamp
Gets the timestamp as reported by theTimestamp.TimestampSource.Devicesource.- Returns:
- Timestamp as reported by the Device
-
clone
-