getCurrentMillis

fun getCurrentMillis(clock: Clock = Clock.System): Long

Returns the current Unix timestamp in milliseconds from the given Clock.

Return

Current time in milliseconds since epoch.

Parameters

clock

The clock to use for time resolution (default is Clock.System).