Package 

Interface TimeProvider


  • 
    public interface TimeProvider
    
                        

    Interface to provide the current time in both device and server time references.

    • Method Summary

      Modifier and Type Method Description
      abstract Long getDeviceTimestampMillis() Returns the current device timestamp in milliseconds.
      abstract Long getServerTimestampMillis() Returns the current server timestamp in milliseconds.
      abstract Long getDeviceElapsedTimeNanos() Returns the current device monotonic elapsed time in nanoseconds.
      abstract Long getServerOffsetNanos() Returns the offset between the device and server time references in nanoseconds.
      abstract Long getServerOffsetMillis() Returns the offset between the device and server time references in milliseconds.
      abstract Long getDeviceElapsedRealtimeMillis() Returns the time since boot in milliseconds, including time spent in sleep.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait