Package xbot.common.controls.sensors
Class XTimer
java.lang.Object
xbot.common.controls.sensors.XTimer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddelay(double seconds) static doubleReturns the current time in seconds since the FPGA was powered on.static TimeReturns the current time in seconds since the FPGA was powered on.static doublestatic voidsetImplementation(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)
-