Package com.ctre.phoenix6
Class AllTimestamps
java.lang.Object
com.ctre.phoenix6.AllTimestamps
- All Implemented Interfaces:
Cloneable
A collection of timestamps for a received signal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Get the most accurate timestamp available.Get the timestamp as reported by theTimestamp.TimestampSource.CANivoresource.Get the timestamp as reported by theTimestamp.TimestampSource.Devicesource.Get the timestamp as reported by theTimestamp.TimestampSource.Systemsource.
-
Constructor Details
-
AllTimestamps
public AllTimestamps()
-
-
Method Details
-
getBestTimestamp
Get 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
Get the timestamp as reported by theTimestamp.TimestampSource.Systemsource.- Returns:
- Timestamp as reported by the System
-
getCANivoreTimestamp
Get the timestamp as reported by theTimestamp.TimestampSource.CANivoresource.- Returns:
- Timestamp as reported by the CANivore
-
getDeviceTimestamp
Get the timestamp as reported by theTimestamp.TimestampSource.Devicesource.- Returns:
- Timestamp as reported by the Device
-
clone
-