Interface TimeProvider


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

    Fields
    Modifier and Type
    Field
    Description
    static final TimeProvider
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the current nano time.
  • Field Details

    • SYSTEM_TIME_PROVIDER

      static final TimeProvider SYSTEM_TIME_PROVIDER
  • Method Details

    • currentTimeNanos

      long currentTimeNanos()
      Returns the current nano time.