package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. tv_sec : int64;
  2. tv_usec : int32;
}
val gettimeofday : unit -> (t, Error.t) Stdlib.result

Binds uv_gettimeofday. See gettimeofday(3p).

Requires libuv 1.28.0.

Feature check: Luv.Require.(has gettimeofday)

val hrtime : unit -> Unsigned.uint64

Samples the high-resolution timer.

Binds uv_hrtime. See clock_gettime(3p).

val sleep : int -> unit

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

Binds uv_sleep. See sleep(3p).

Requires libuv 1.34.0.

Feature check: Luv.Require.(has sleep)

OCaml

Innovation. Community. Security.