Skip to content

CausalClock Methods

Provides monotonically increasing UTC timestamps and merges timestamps from distributed participants.

Merge(DateTime)

View source
public DateTime Merge(DateTime timestamp)
Merges a timestamp into this clock.

Parameters

timestampDateTime
The timestamp to observe.

Returns

The latest timestamp observed by this clock.

MergeUtcNow(DateTime)

View source
public DateTime MergeUtcNow(DateTime timestamp)
Merges a timestamp and advances this clock using the current UTC time.

Parameters

timestampDateTime
The timestamp to observe before advancing the clock.

Returns

A UTC timestamp later than the supplied and previously observed timestamps.

UtcNow

View source
public DateTime UtcNow()
Gets a UTC timestamp which is later than every timestamp previously observed by this instance.

Returns

A monotonically increasing UTC timestamp.