mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Adds RobotController class (#828)
Unifies random functionality from other classes Deprecates all old functions.
This commit is contained in:
committed by
Peter Johnson
parent
88a6b4ac38
commit
8b7aa61091
@@ -29,11 +29,11 @@ public class TimerTest extends AbstractComsSetup {
|
||||
@Test
|
||||
public void delayTest() {
|
||||
// Given
|
||||
long startTime = Utility.getFPGATime();
|
||||
long startTime = RobotController.getFPGATime();
|
||||
|
||||
// When
|
||||
Timer.delay(TIMER_RUNTIME / 1000000);
|
||||
long endTime = Utility.getFPGATime();
|
||||
long endTime = RobotController.getFPGATime();
|
||||
long difference = endTime - startTime;
|
||||
|
||||
// Then
|
||||
|
||||
Reference in New Issue
Block a user