clock

val Time.clock: <Error class: unknown class>(source)

Creates a Clock that follows the virtual time in this test.

Example

test("Pass the time to an external service") {
val service = SomeExternalService(time.clock)
}

See also

The current time as an Instant.

Measure elapsed time.