package mirage-clock-lwt

  1. Overview
  2. Docs
Libraries and module types for two kinds of clocks:

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-clock-lwt-1.2.0.tbz
sha256=9a89a5e141d469919d9fd32bb99b5446348063f9bd70d8f97b10475657422877
md5=e791c0a71f29c2cde9239daaa173677d

Description

  • clocks which give a full date and time (PCLOCK)
  • clocks which give a count of time elapsed since the clock started, guaranteed to always increase (MCLOCK)

These are primarily useful in the context of Mirage projects.

Tags

org:mirage

Published: 23 Feb 2017

README

README.md

This library implements portable support for an operating system timesource that is compatible with the MirageOS library interfaces found in: https://github.com/mirage/mirage

It implements an MCLOCK module that represents a monotonic timesource since an arbitrary point, and PCLOCK which counts time since the Unix epoch.

The following sources are used:

  • The Unix version uses gettimeofday or clock_gettime, depending on which OS is in use (see clock_stubs.c).

  • The freestanding version uses the paravirtual clock source from the hypervisor.

Dependencies (6)

  1. lwt
  2. mirage-clock = "1.2.0"
  3. topkg build & >= "0.8.0"
  4. ocamlbuild build
  5. ocamlfind build
  6. ocaml

Dev Dependencies

None

Used by (7)

  1. dns-forward >= "0.9.0"
  2. mirage-clock-freestanding < "3.0.0"
  3. mirage-clock-unix >= "1.2.0" & < "3.0.0"
  4. mirage-nat < "2.0.0"
  5. mirage-types-lwt >= "3.0.0" & < "3.4.0"
  6. mirage-vnetif >= "0.3.1" & < "0.5.0"
  7. tcpip >= "3.0.0" & < "4.0.0"

Conflicts

None

OCaml

Innovation. Community. Security.