All these functions can raise Unix_error.
val get_time : (t ‑> Core__.Import.Time.Span.t) Core__.Import.Or_error.tval set_time : (t ‑> Core__.Import.Time.Span.t ‑> unit) Core__.Import.Or_error.tval get_resolution : (t ‑> Core__.Import.Time.Span.t) Core__.Import.Or_error.tval get_process_clock : (unit ‑> t) Core__.Import.Or_error.tThe clock measuring the CPU time of a process.
val get_thread_clock : (unit ‑> t) Core__.Import.Or_error.tThe clock measuring the CPU time of the current thread.