package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e

doc/b0.std/B0_std/Os/Cpu/Time/index.html

Module Cpu.Time

Measuring CPU user and system time.

CPU time spans

type span

The type for CPU execution time spans.

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.

CPU time counters

type counter

The type for CPU time counters.

val counter : unit -> counter

counter () is a counter counting from now on.

val count : counter -> span

count c are CPU times since c was created.

OCaml

Innovation. Community. Security.