Time.Stopwatch

lib/Time/Stopwatch.gob

A reading of the monotonic clock, for measuring how long something takes. That clock only moves forward, at a steady rate, from an arbitrary start; the system clock an Instant reads can be set back or forward while a program runs, so the difference between two instants is not a measurement. A stopwatch has no date and does not turn into an instant.

type Stopwatch : Ord
fun start : fun() -> Stopwatch
fun elapsed : fun(Stopwatch) -> Duration

The time since sw was started.