package core_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Linux_ext.ClockSource

Sourcetype t

All these functions can raise Unix_error.

Returns the CPU-clock associated with the thread.

Sourceval set_time : (t -> Core.Time_float.Span.t -> unit) Core.Or_error.t
Sourceval get_process_clock : (unit -> t) Core.Or_error.t

The clock measuring the CPU time of a process.

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

The clock measuring the CPU time of the current thread.