seqeron 0.18.0
Loading...
Searching...
No Matches
Org.Limitless.Seqeron.Util.Clocks Class Reference

The clocks every duty-cycle deadline and delivery stamp in this tree reads. More...

Static Public Member Functions

static long MonotonicMs ()
 Elapsed milliseconds from an arbitrary origin, for measuring durations. Stopwatch is monotonic where the wall clock steps under NTP.
 
static long EpochNanos ()
 Wall-clock time in epoch nanoseconds, the unit the cluster's timestamps use. Agrona's SystemEpochNanoClock in Java; its resolution is the platform's, 100 ns at best.
 

Detailed Description

The clocks every duty-cycle deadline and delivery stamp in this tree reads.

Member Function Documentation

◆ EpochNanos()

static long Org.Limitless.Seqeron.Util.Clocks.EpochNanos ( )
inlinestatic

Wall-clock time in epoch nanoseconds, the unit the cluster's timestamps use. Agrona's SystemEpochNanoClock in Java; its resolution is the platform's, 100 ns at best.

Returns
nanoseconds since 1970-01-01T00:00Z

◆ MonotonicMs()

static long Org.Limitless.Seqeron.Util.Clocks.MonotonicMs ( )
inlinestatic

Elapsed milliseconds from an arbitrary origin, for measuring durations. Stopwatch is monotonic where the wall clock steps under NTP.

Returns
a monotonic reading in milliseconds; meaningful only as a difference against another

The documentation for this class was generated from the following file: