mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Add timestamp getters with configurable time base (#7378)
This commit is contained in:
@@ -23,11 +23,11 @@ public class TimerTest extends AbstractComsSetup {
|
||||
@Test
|
||||
public void delayTest() {
|
||||
// Given
|
||||
long startTime = RobotController.getFPGATime();
|
||||
long startTime = RobotController.getTime();
|
||||
|
||||
// When
|
||||
Timer.delay(TIMER_RUNTIME / 1000000);
|
||||
long endTime = RobotController.getFPGATime();
|
||||
long endTime = RobotController.getTime();
|
||||
long difference = endTime - startTime;
|
||||
|
||||
// Then
|
||||
|
||||
Reference in New Issue
Block a user