Module Webs_unix.Time

Measuring time.

Support to measure monotonic wall-clock time.

Monotonic time spans

type span

The type for non-negative monotonic time spans. They represent the difference between two clock readings with nanosecond precision (1e-9s).

module Span : sig ... end

Time spans

Monotonic wall-clock time counters

type counter

The type for monotonic wall-clock time counters.

val counter : unit -> counter

counter () is a counter counting from now on.

val count : counter -> span

count c is the monotonic time span elapsed since c was created.