Package com.ctre.phoenixpro
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 nowTimestamp.TimestampSource
getSource()
Deprecated, for removal: This API element is subject to removal in a future version.Get the source of this timestampdouble
getTime()
Deprecated, for removal: This API element is subject to removal in a future version.Get the time in seconds as reported from this timestampboolean
isValid()
Deprecated, for removal: This API element is subject to removal in a future version.Returns if this Timestamp is valid or not.
-
Method Details
-
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
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
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
-