SystemClockTimeProvider

SystemTimeProvider implementation using the Android-specific SystemClock mechanism.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun currentTimeMillis(): Long

Returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.

Link copied to clipboard
open override fun elapsedRealtime(): Long

Returns milliseconds since device boot, including time spent in sleep mode.

Link copied to clipboard
open override fun elapsedRealtimeNanos(): Long

Returns nanoseconds since device boot, including time spent in sleep mode.