package luv

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

Install

Dune Dependency

Authors

Maintainers

Sources

luv-0.5.5.tar.gz
sha256=a81268ceb85b8cffbeb5e5a9fdb4c6e724266ce0dee1f39afc4bb4a17703d749
md5=5d2335fb57ffe228151cc492888ca2dc

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