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 (67)

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