package luv

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

Module Luv.TimeSource

Sourcetype t = {
  1. tv_sec : int64;
  2. tv_usec : int32;
}
Sourceval gettimeofday : unit -> (t, Error.t) Result.result
Sourceval hrtime : unit -> Unsigned.uint64

Samples the high-resolution timer.

Binds uv_hrtime. See clock_gettime(3p).

Sourceval sleep : int -> unit

Suspends the calling thread for at least the given number of milliseconds.

Binds uv_sleep. See sleep(3p).

OCaml

Innovation. Community. Security.