-
public interface TimeProviderInterface to provide the current time in both device and server time references.
-
-
Method Summary
Modifier and Type Method Description abstract LonggetDeviceTimestamp()Returns the current device timestamp in milliseconds. abstract LonggetServerTimestamp()Returns the current server timestamp in milliseconds. abstract LonggetServerOffsetNanos()Returns the offset between the device and server time references in nanoseconds. abstract LonggetServerOffsetMillis()Returns the offset between the device and server time references in milliseconds. -
-
Method Detail
-
getDeviceTimestamp
abstract Long getDeviceTimestamp()
Returns the current device timestamp in milliseconds.
-
getServerTimestamp
abstract Long getServerTimestamp()
Returns the current server timestamp in milliseconds.
-
getServerOffsetNanos
abstract Long getServerOffsetNanos()
Returns the offset between the device and server time references in nanoseconds.
-
getServerOffsetMillis
abstract Long getServerOffsetMillis()
Returns the offset between the device and server time references in milliseconds.
-
-
-
-