corda / net.corda.testing.node / MockServices / clock

clock

open val clock: TestClock

A Clock representing the node's current time. This should be used in preference to directly accessing the clock so the current time can be controlled during unit testing.