The Timer class provides a timer for measuring elapsed time.
More...
The Timer class provides a timer for measuring elapsed time.
◆ delay()
static void robotCore.Timer.delay |
( |
double |
seconds | ) |
|
|
static |
Causes the current thread to sleep
- Parameters
-
seconds | - specifies the delay time in seconds. |
◆ get()
double robotCore.Timer.get |
( |
| ) |
|
- Returns
- - Returns the elapsed time in seconds
◆ getFPGATimestamp()
static double robotCore.Timer.getFPGATimestamp |
( |
| ) |
|
|
static |
Gets the current system time in seconds
- Returns
- - Returns the current system time in seconds
◆ hasElapsed()
boolean robotCore.Timer.hasElapsed |
( |
double |
time | ) |
|
- Parameters
-
time | - Specifies the elapsed time. |
- Returns
- - Returns true if the time has elapsed
◆ reset()
void robotCore.Timer.reset |
( |
| ) |
|
The documentation for this class was generated from the following file:
- D:/SDASVN/2022/RaspberryPi/Source/robotCore/Timer.java