Module type Tick.MTICK

module type MTICK = sig .. end
The type for monotonic clock ticks.


Tick tock


type ns_span = int64 
The type for nanosecond precision time spans. This is an unsigned 64-bit integer. It can measure up to approximatevely 584 Julian years before (silently) rolling over.
val tock : delay_ns:ns_span -> (ns_span -> unit) -> unit
tock d f calls f t in d monotonic nanosecond with t the number of elapsed (measured using Tick.MCLOCK.elapsed_ns) between the call to tock and f's invocation.

Tick.MCLOCK being used, t cannot be relied upon if a Tick.LIFECYCLE.suspend event occurs between the call to tock and f's invocation.