package core

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.14.1.tar.gz
sha256=8c158c12345d36a5cdd71081728f4317b2b04c09eb4126b6de00c482a6fec2a0
md5=b11f58205953d84cedb0003efcdab231

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.