Package com.ctre.phoenixpro
Class Utils
java.lang.Object
com.ctre.phoenixpro.Utils
public class Utils extends Object
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
Modifier and Type Method Description static double
getCurrentTimeSeconds()
Get the current timestamp in seconds.static boolean
isSimulation()
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:
true
if in simulation
-