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

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

Conflicts

None

Build status

Results of building mtime with each compiler on check.ci.ocaml.org, run of against opam-repository 6e2873f. 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