[sim] Change stepTiming to take seconds (#2599)

This is consistent with other WPILib timer functions.
This commit is contained in:
Peter Johnson
2020-07-16 22:15:59 -07:00
committed by GitHub
parent c2cc90b27d
commit 9778445a74
3 changed files with 7 additions and 4 deletions

View File

@@ -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));
}
}