Releases: dune-universe/mtime
2.0.0+dune
CHANGES:
- Use the new
js_of_ocaml
ocamlfindMETA
standard to link JavaScript
stubs (dbuenzli#28). Mtime_clock
useCLOCK_BOOTTIME
rather thanCLOCK_MONOTONIC
on Linux andmach_continuous_time
rather thanmach_absolute_time
on macOS. This means that on these platforms sleep time is taken
into account (dbuenzli#10). Thanks to Bikal Lem for the patch.- Add
Mtime.{to,of}_float_ns
. - Remove deprecated values
Mtime.s_to_*
andMtime.Span.to_*
floating
points functions. Note that the implementation ofMtime.Span.to_*
functions was broken if your span exceededInt64.max_int
. Thanks
to Thomas Leonard for the report (dbuenzli#46). - Change implementation of
Mtime.Span.pp
and remove
Mtime.Span.pp_float_s
. The implementation no longer uses floating
point arithmetic and always over approximates the result, no
duration is printed shorter than it is. The output is no longer
US-ASCII but UTF-8 encoded since U+03BC is used for µs. - Stop installing the clock interface in
mtime.clock
, this package
is now empty (dbuenzli#42).
v1.4.0+dune2
CHANGES:
-
Change the
js_of_ocaml
strategy forMtime_clock
's JavaScript
implementation. Primitives ofmtime.clock.os
are now implemented
in pure JavaScript and linked byjs_of_ocaml
. This means that the
mtime.clock.jsoo
library no longer exists, simply link against
mtime.clock.os
instead. Thanks to Hugo Heuzard for suggesting and
implementing this. -
Add
Mtime.{min,max}_stamp
. -
Add durations
Mtime.Span.{ns,us,ms,s,min,hour,day,year}
and
theMtime.Span.(*)
operator (dbuenzli#28). -
Deprecate
Mtime.s_to_*
andMtime.*_to_s
floating point constants (dbuenzli#28). -
Require OCaml >= 4.08.
-
Allow compiling with MSVC compiler. Thanks to Jonah Beckford for the patch.
1.4.0+dune
CHANGES:
-
Change the
js_of_ocaml
strategy forMtime_clock
's JavaScript
implementation. Primitives ofmtime.clock.os
are now implemented
in pure JavaScript and linked byjs_of_ocaml
. This means that the
mtime.clock.jsoo
library no longer exists, simply link against
mtime.clock.os
instead. Thanks to Hugo Heuzard for suggesting and
implementing this. -
Add
Mtime.{min,max}_stamp
. -
Add durations
Mtime.Span.{ns,us,ms,s,min,hour,day,year}
and
theMtime.Span.(*)
operator (dbuenzli#28). -
Deprecate
Mtime.s_to_*
andMtime.*_to_s
floating point constants (dbuenzli#28). -
Require OCaml >= 4.08.
-
Allow compiling with MSVC compiler. Thanks to Jonah Beckford for the patch.
1.3.0+dune
CHANGES:
- Add Windows support. Thanks to Andreas Hauptmann for the patch
and Corentin Leruth for the integration.