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

    Constructors
    Constructor
    Description
     
    MockElapsedTime(long startTime)
     
    MockElapsedTime(com.qualcomm.robotcore.util.ElapsedTime.Resolution resolution)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    advanceNanos(long nanos)
     
    void
    advanceTime(long time, TimeUnit unit)
     
    protected long
     
    void
    setNanos(long nanos)
     
    void
    setTime(long time, TimeUnit unit)
     

    Methods inherited from class com.qualcomm.robotcore.util.ElapsedTime

    getResolution, log, milliseconds, nanoseconds, now, reset, seconds, startTime, startTimeNanoseconds, time, time, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 class com.qualcomm.robotcore.util.ElapsedTime
    • setNanos

      public void setNanos(long nanos)
    • advanceNanos

      public void advanceNanos(long nanos)
    • setTime

      public void setTime(long time, TimeUnit unit)
    • advanceTime

      public void advanceTime(long time, TimeUnit unit)