package mtime

All checked builds pass
  1. Overview
  2. Docs
Monotonic wall-clock time for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mtime-2.2.0.tbz
sha512=c7d0ef764c3cc803b9c06216601057d5092b624ee313780df70f6a0a462f12671986af69c90e811038419cae4648c62acbef71398ceb8d0d3c9dcda6ff0fab80

Description

Mtime has platform independent support for monotonic wall-clock time in pure OCaml. This time increases monotonically and is not subject to operating system calendar time adjustments. The library has types to represent nanosecond precision timestamps and time spans.

The additional Mtime_clock library provide access to a system monotonic clock.

Mtime has a no dependency. Mtime_clock depends on your system library or JavaScript runtime system. Mtime and its libraries are distributed under the ISC license.

Home page: http://erratique.ch/software/mtime

Tags

time monotonic system org:erratique

Added to opam-repository:

README

Mtime — Monotonic wall-clock time for OCaml

Mtime has platform independent support for monotonic wall-clock time in pure OCaml. This time increases monotonically and is not subject to operating system calendar time adjustments. The library has types to represent nanosecond precision timestamps and time spans.

The additional Mtime_clock library provide access to a system monotonic clock.

Mtime has a no dependency. Mtime_clock depends on your system library or JavaScript runtime system. Mtime and its libraries are distributed under the ISC license.

Home page: http://erratique.ch/software/mtime

Installation

Mtime can be installed with opam:

opam install mtime

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc mtime.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Sample programs

See test/min_clock.ml.

If you installed mtime with opam sample programs are located in the directory opam var mtime:doc.

Dependencies (4)

  1. topkg build & >= "1.1.0"
  2. ocamlbuild build & != "0.9.0"
  3. ocamlfind build
  4. ocaml >= "4.08.0"

Dev Dependencies

None

Optional Dependencies

None

Used by (68)

  1. a2a-client
  2. acgtk >= "2.1.0"
  3. awa
  4. awa-mirage
  5. bos
  6. caqti >= "2.0.1"
  7. caqti-lwt >= "2.0.1"
  8. cascade >= "1.2.0"
  9. cca >= "0.7"
  10. charrua-unix >= "1.6.0"
  11. console-eio
  12. console-lwt
  13. diffast-git-cli
  14. dns-cli
  15. dns-client
  16. dns-client-lwt
  17. dns-forward
  18. docteur >= "0.0.6"
  19. domain-local-timeout
  20. eio != "0.7"
  21. fstar >= "2025.02.17"
  22. fuseau
  23. git-unix = "3.2.0" | >= "3.15.0"
  24. happy-eyeballs-lwt
  25. happy-eyeballs-miou-unix
  26. index >= "1.2.1" & < "1.4.1" | >= "1.6.2"
  27. index-bench >= "1.4.0"
  28. irmin >= "3.10.0"
  29. irmin-bench >= "3.10.0"
  30. irmin-containers >= "3.10.0"
  31. irmin-git != "3.6.1"
  32. irmin-pack >= "3.10.0"
  33. irmin-test != "3.6.1"
  34. k7
  35. logs
  36. metrics-unix
  37. miou
  38. mirage-crypto-rng < "0.11.3"
  39. mirage-crypto-rng-eio
  40. mirage-crypto-rng-lwt
  41. mirage-crypto-rng-miou-unix
  42. mirage-mtime
  43. multicore-bench
  44. nanoev-posix
  45. neodriver_core
  46. neodriver_eio
  47. OCanren
  48. obs-eio
  49. opentelemetry >= "0.12"
  50. opentelemetry-client-cohttp-eio
  51. opentelemetry-client-cohttp-lwt
  52. opentelemetry-client-ocurl
  53. opentelemetry-client-ocurl-lwt
  54. opium >= "0.19.0"
  55. picos < "0.5.0"
  56. picos_io
  57. ppx_expect_nobase = "v0.17.2.2"
  58. ppx_inline_test_nobase
  59. ppx_minidebug >= "1.6.0"
  60. progress >= "0.2.2"
  61. requisite
  62. riot >= "0.0.8"
  63. smtml >= "0.12.0"
  64. terminal
  65. tezt-bam
  66. trace-fuchsia
  67. trace-tef
  68. utcp

Conflicts

None

Build status

Results of building mtime with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
2.2.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure