package eio

  1. Overview
  2. Docs
type t = < Mtime.t Eio.Time.clock_base ; advance : unit ; set_time : Mtime.t -> unit >
val make : unit -> t

make () is a new clock.

The time is initially set to 0.0 and doesn't change except when you call advance or set_time.

val advance : t -> unit

advance t sets the time to the next scheduled event (adding any due fibers to the run queue).

val set_time : t -> Mtime.t -> unit

set_time t time sets the time to time (adding any due fibers to the run queue).

OCaml

Innovation. Community. Security.