Class MockElapsedTime
java.lang.Object
com.qualcomm.robotcore.util.ElapsedTime
org.firstinspires.ftc.teamcode.fy23.fakestuff.MockElapsedTime
public class MockElapsedTime
extends com.qualcomm.robotcore.util.ElapsedTime
-
Nested Class Summary
Nested classes/interfaces inherited from class com.qualcomm.robotcore.util.ElapsedTime
com.qualcomm.robotcore.util.ElapsedTime.Resolution
-
Field Summary
Fields inherited from class com.qualcomm.robotcore.util.ElapsedTime
MILLIS_IN_NANO, nsStartTime, resolution, SECOND_IN_NANO
-
Constructor Summary
ConstructorDescriptionMockElapsedTime
(long startTime) MockElapsedTime
(com.qualcomm.robotcore.util.ElapsedTime.Resolution resolution) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceNanos
(long nanos) void
advanceTime
(long time, TimeUnit unit) protected long
nsNow()
void
setNanos
(long nanos) void
Methods inherited from class com.qualcomm.robotcore.util.ElapsedTime
getResolution, log, milliseconds, nanoseconds, now, reset, seconds, startTime, startTimeNanoseconds, time, time, toString
-
Constructor Details
-
MockElapsedTime
public MockElapsedTime() -
MockElapsedTime
public MockElapsedTime(long startTime) -
MockElapsedTime
public MockElapsedTime(com.qualcomm.robotcore.util.ElapsedTime.Resolution resolution)
-
-
Method Details
-
nsNow
protected long nsNow()- Overrides:
nsNow
in classcom.qualcomm.robotcore.util.ElapsedTime
-
setNanos
public void setNanos(long nanos) -
advanceNanos
public void advanceNanos(long nanos) -
setTime
-
advanceTime
-