package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

Dune Dependency

Authors

Maintainers

Sources

b0-0.0.4.tbz
sha512=665735c8b7a8674201be765bdd676a18d1e38eff35de9d44c3dc15e2bfed2247e8963c9a32ae62d9ca2d6cd1edebd849aac29fdd5a846c14a30feea3edfc0601

doc/b0_b00_std/B00_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.