orbit-util / orbit.util.time / Stopwatch

Stopwatch

class Stopwatch

A stopwatch for measuring elapsed time.

Parameters

clock - The clock to use for measuring time

Properties

elapsed

The amount of time that has elapsed so far.

val elapsed: TimeMs

Companion Object Functions

start

Starts a stopwatch at the current time.

fun start(clock: Clock): Stopwatch