tock

open suspend override fun tock(externalTime: LamportTimestamp): LamportTimestamp

Updates the internal state of the clock to reflect the occurrence of an external event with the given logical timestamp.

Returns the new logical timestamp of the clock, which may be different from the argument externalTime.