Clock
open class Clock : Disposable, AutoCloseable, ClockInterface
A typed view of the on-chain 0x2::clock::Clock object (the 0x6 singleton carrying the consensus timestamp).
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| id | open override fun id(): ObjectId The object's ID. |
| timestampMs | open override fun timestampMs(): ULong The clock's timestamp (ms), set by consensus every commit. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| tryFromBcs | fun tryFromBcs(bytes: ByteArray): Clock Decode from BCS bytes, without validating the on-chain type tag. |
| tryFromObject | fun tryFromObject(object: Object): Clock Decode from an on-chain object, validating its Move type tag. |