UptimeClock

fun interface UptimeClock

An interface to abstract the clock to get the system uptime.

Functions

Link copied to clipboard
abstract fun uptime(): Duration

On JVMs this should return System.nanoTime as a Duration.