inline fun <T> stopwatch(clock: Clock, body: () -> T): ElapsedAndResult<T>
A stopwatch that measures the time that elapses for the given computation.
clock - The clock to use for measuring time.
clock
body - The computation to measure.
body