corda / net.corda.testing.node / TestClock / setTo

setTo

@Synchronized fun setTo(newInstant: Instant): Unit

Move this Clock to the specified Instant for testing purposes. This will only be approximate due to the time ticking away, but will be some time shortly after the requested Instant.