mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[sim] Change stepTiming to take seconds (#2599)
This is consistent with other WPILib timer functions.
This commit is contained in:
@@ -45,7 +45,7 @@ public final class SimHooks {
|
||||
return SimulatorJNI.isTimingPaused();
|
||||
}
|
||||
|
||||
public static void stepTiming(long delta) {
|
||||
SimulatorJNI.stepTiming(delta);
|
||||
public static void stepTiming(double deltaSeconds) {
|
||||
SimulatorJNI.stepTiming((long) (deltaSeconds * 1e6));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user