Package com.ctre.phoenix6
Class Timestamp
java.lang.Object
com.ctre.phoenix6.Timestamp
public class Timestamp extends Object
Information about the timestamp of a signal.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Timestamp.TimestampSource
Source of the timestamp. -
Method Summary
Modifier and Type Method Description double
getLatency()
Get the latency of this timestamp compared to nowTimestamp.TimestampSource
getSource()
Get the source of this timestampdouble
getTime()
Get the time in seconds as reported from this timestampboolean
isValid()
Returns if this Timestamp is valid or not.
-
Method Details
-
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
Get the latency of this timestamp compared to now- Returns:
- Difference between now and this timestamp
-
isValid
Returns if this Timestamp is valid or not.- Returns:
- true when this is valid
-