Interface TimeProvider


  • public interface TimeProvider
    Time source representing the current system time in nanos. Used to inject a fake clock into unit tests.
    • Field Detail

      • SYSTEM_TIME_PROVIDER

        static final TimeProvider SYSTEM_TIME_PROVIDER
    • Method Detail

      • currentTimeNanos

        long currentTimeNanos()
        Returns the current nano time.