Eio.TimeClocks, time, sleeping and timeouts.
val now : _ clock -> floatnow t is the current time since 00:00:00 GMT, Jan. 1, 1970 - in seconds - according to t.
val sleep_until : _ clock -> float -> unitsleep_until t time waits until the given time is reached.
val sleep : _ clock -> float -> unitsleep t d waits for d seconds.
module Mono : sig ... endMonotonic clocks.
val with_timeout :
_ clock ->
float ->
(unit -> ('a, 'e) Stdlib.result) ->
('a, [> `Timeout ] as 'e) Stdlib.resultwith_timeout clock d fn runs fn () but cancels it after d seconds.
val with_timeout_exn : _ clock -> float -> (unit -> 'a) -> 'awith_timeout_exn clock d fn runs fn () but cancels it after d seconds, raising exception Timeout.
module Timeout : sig ... endTimeout values.
module Pi : sig ... end