clock
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)
}
Content copied to clipboard
See also
The current time as an Instant.
Measure elapsed time.