API View source
createHlcClock()
Creates a monotonic hybrid logical clock for a single node.
Signature
function createHlcClock(options: {
nodeId: NodeId
now?: () => bigint
maxDriftMs?: bigint
}): HlcClock Creates a monotonic hybrid logical clock for a single node.
function createHlcClock(options: {
nodeId: NodeId
now?: () => bigint
maxDriftMs?: bigint
}): HlcClock