Package xbot.common.controls.sensors
Class XTimer
java.lang.Object
xbot.common.controls.sensors.XTimer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
delay
(double seconds) static double
Returns the current time in seconds since the FPGA was powered on.static Time
Returns the current time in seconds since the FPGA was powered on.static double
static void
setImplementation
(XTimerImpl implementation)
-
Constructor Details
-
XTimer
public XTimer()
-
-
Method Details
-
setImplementation
-
getFPGATimestamp
public static double getFPGATimestamp()Returns the current time in seconds since the FPGA was powered on.- Returns:
- Time in seconds
-
getFPGATimestampTime
Returns the current time in seconds since the FPGA was powered on.- Returns:
- Time in seconds
-
getMatchTime
public static double getMatchTime() -
delay
public static void delay(double seconds)
-