Package com.ctre.phoenix6
Class Utils
java.lang.Object
com.ctre.phoenix6.jni.CtreJniWrapper
com.ctre.phoenix6.Utils
public class Utils extends CtreJniWrapper
-
Constructor Summary
Constructors Constructor Description Utils() -
Method Summary
Modifier and Type Method Description static doublegetCurrentTimeSeconds()Get the current timestamp in seconds.static booleanisSimulation()Get whether the program is running in simulation.
-
Constructor Details
-
Method Details
-
getCurrentTimeSeconds
Get the current timestamp in seconds.This will return the current time in seconds, this is the same time that is used in
Timestamp- Returns:
- Current time in seconds.
-
isSimulation
Get whether the program is running in simulation.- Returns:
trueif in simulation
-