package mtime
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
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
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 mtimeIf 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)
-
topkg
build & >= "1.1.0" -
ocamlbuild
build & != "0.9.0" -
ocamlfind
build -
ocaml
>= "4.08.0"
Dev Dependencies
None
Optional Dependencies
None
Used by (67)
- a2a-client
-
acgtk
>= "2.1.0" - awa
- awa-mirage
- bos
-
caqti
>= "2.0.1" -
caqti-lwt
>= "2.0.1" -
cascade
>= "1.2.0" -
cca
>= "0.7" -
charrua-unix
>= "1.6.0" - console-eio
- diffast-git-cli
- dns-cli
- dns-client
- dns-client-lwt
- dns-forward
-
docteur
>= "0.0.6" - domain-local-timeout
-
eio
!= "0.7" -
fstar
>= "2025.02.17" - fuseau
-
git-unix
= "3.2.0" | >= "3.15.0" - happy-eyeballs-lwt
- happy-eyeballs-miou-unix
-
index
>= "1.2.1" & < "1.4.1" | >= "1.6.2" -
index-bench
>= "1.4.0" -
irmin
>= "3.10.0" -
irmin-bench
>= "3.10.0" -
irmin-containers
>= "3.10.0" -
irmin-git
!= "3.6.1" -
irmin-pack
>= "3.10.0" -
irmin-test
!= "3.6.1" - k7
- logs
- metrics-unix
- miou
-
mirage-crypto-rng
< "0.11.3" - mirage-crypto-rng-eio
- mirage-crypto-rng-lwt
- mirage-crypto-rng-miou-unix
- mirage-mtime
- multicore-bench
- nanoev-posix
- neodriver_core
- neodriver_eio
- OCanren
- obs-eio
-
opentelemetry
>= "0.12" - opentelemetry-client-cohttp-eio
- opentelemetry-client-cohttp-lwt
- opentelemetry-client-ocurl
- opentelemetry-client-ocurl-lwt
-
opium
>= "0.19.0" -
picos
< "0.5.0" - picos_io
-
ppx_expect_nobase
= "v0.17.2.2" - ppx_inline_test_nobase
-
ppx_minidebug
>= "1.6.0" -
progress
>= "0.2.2" - requisite
-
riot
>= "0.0.8" -
smtml
>= "0.12.0" - terminal
- tezt-bam
- trace-fuchsia
- trace-tef
- 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