Module Time.Span

CPU time spans.

CPU time counters

type t

The type for CPU execution time spans.

val make : utime:Mtime.Span.t -> stime:Mtime.Span.t -> children_utime:Mtime.Span.t -> children_stime:Mtime.Span.t -> t

make ~utime ~stime ~children_utime ~children_stime is a cpu span with the given fields. See accessors for semantics.

val zero : t

zero is zero CPU times.

val utime : t -> Mtime.Span.t

utime cpu is the user time of cpu.

val stime : t -> Mtime.Span.t

stime cpu is the system time of cpu.

val children_utime : t -> Mtime.Span.t

children_utime cpu is the user time for children processes of cpu.

val children_stime : t -> Mtime.Span.t

children_stime cpu is the system time for children processes of cpu.