corda / net.corda.core.node / ServiceHub / clock

clock

abstract val clock: Clock

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.