Interface Clock

All Known Implementing Classes:
Clock.Cached, Clock.CachedOnDemand, Clock.Null, DeltaLocalClockImpl, LocalClockImpl, RealTimeClock, SimulationClock

public interface Clock
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static class  Clock.Cached
    This implementation just returns the last value passed to set().
    static class  Clock.CachedOnDemand
    This implementation is similar to cached, except that is calls set() itself on a the Clock instance given to the constructor exactly once between reset() calls.
    static interface  Clock.Factory  
    static class  Clock.Null  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static Clock.Null NULL  
  • Method Summary

    Modifier and Type Method Description
    long currentTimeMicros()  
    long currentTimeMillis()  
  • Field Details

  • Method Details

    • currentTimeMillis

      long currentTimeMillis()
    • currentTimeMicros

      long currentTimeMicros()