SystemClockTimeProvider

class SystemClockTimeProvider : SystemTimeProvider

SystemTimeProvider implementation using the Android-specific SystemClock mechanism.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun SystemClockTimeProvider()

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.