module type MTICK =sig
..end
typens_span =
int64
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.