package core

  1. Overview
  2. Docs
Industrial strength alternative to OCaml's standard library

Install

Dune Dependency

Authors

Maintainers

Sources

core-v0.14.0.tar.gz
sha256=08447e7d539b69d13b2633c61bab5fdb81624b1391540be097a6a91023f9ce33
md5=571dc65fff922c86951068d66e4a05ca

doc/core.linux_ext/Linux_ext/Clock/index.html

Module Linux_ext.Clock

type t

All these functions can raise Unix_error.

val get : (Core.Thread.t -> t) Core.Or_error.t

Returns the CPU-clock associated with the thread.

val get_time : (t -> Core.Time.Span.t) Core.Or_error.t
val set_time : (t -> Core.Time.Span.t -> unit) Core.Or_error.t
val get_resolution : (t -> Core.Time.Span.t) Core.Or_error.t
val get_process_clock : (unit -> t) Core.Or_error.t

The clock measuring the CPU time of a process.

val get_thread_clock : (unit -> t) Core.Or_error.t

The clock measuring the CPU time of the current thread.

OCaml

Innovation. Community. Security.