package luv

  1. Overview
  2. Docs
Binding to libuv: cross-platform asynchronous I/O

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.8.tar.gz
sha256=b3bedf34bc1ba0d9a448091145bc0b5efefae1b1fe8b44e564d989b3b63c6ff8
md5=9d0e3498b9f59993b0d42f80793d8fad

doc/luv/Luv/Time/index.html

Module Luv.TimeSource

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

Binds uv_gettimeofday. See gettimeofday(3p).

Requires libuv 1.28.0.

Feature check: Luv.Require.(has gettimeofday)

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).

Requires libuv 1.34.0.

Feature check: Luv.Require.(has sleep)

OCaml

Innovation. Community. Security.