Module B0_std.Time
Measuring time.
Support to measure monotonic wall-clock time, CPU user and CPU system time.
Monotonic time spans
type spanThe type for non-negative monotonic time spans. They represent the difference between two clock readings with nanosecond precision (1e-9s).
module Span : sig ... endTime spans
Monotonic wall-clock time counters
val counter : unit -> countercounter ()is a counter counting from now on.
CPU time spans
val cpu_zero : cpu_spancpu_zerois zero CPU times.
val cpu_children_utime : cpu_span -> spancpu_utime_s cpuiscpu's user time in seconds for children processes.
CPU time counters
val cpu_counter : unit -> cpu_countercpu_counter ()is a counter counting from now on.
val cpu_count : cpu_counter -> cpu_spancpu_count care CPU times sincecwas created.