Cpu.Time
Measuring CPU user and system time.
val span :
utime:Mtime.span ->
stime:Mtime.span ->
children_utime:Mtime.span ->
children_stime:Mtime.span ->
span
span ~utime ~stime ~children_utime
~children_stime
is a cpu span with the given fields. See accessors for semantics.
val zero : span
zero
is zero CPU times.
val utime : span -> Mtime.span
utime cpu
is cpu
's user time.
val stime : span -> Mtime.span
stime cpu
is cpu
's system time.
val children_utime : span -> Mtime.span
children_utime cpu
is cpu
's user time for children processes.
val children_stime : span -> Mtime.span
children_stime cpu
is cpu
's system time for children processes.
val counter : unit -> counter
counter ()
is a counter counting from now on.