Releases: dune-universe/mtime
2.1.0+dune
CHANGES:
- Add
Mtime.Span.{is_shorter,is_longer}to make duration
comparisons more obivous. Thanks to Pau Ruiz Safont for
the suggestion and the patch. - Regularize naming structure. The
mtime.clock.oslibrary
is deprecated. Usemtime.clockinstead. - Make the library
mtime.clockexportmtime.
2.0.0+dune
CHANGES:
- Use the new
js_of_ocamlocamlfindMETAstandard to link JavaScript
stubs (dbuenzli#28). Mtime_clockuseCLOCK_BOOTTIMErather thanCLOCK_MONOTONIC
on Linux andmach_continuous_timerather 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.ppand 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_ocamlstrategy forMtime_clock's JavaScript
implementation. Primitives ofmtime.clock.osare now implemented
in pure JavaScript and linked byjs_of_ocaml. This means that the
mtime.clock.jsoolibrary no longer exists, simply link against
mtime.clock.osinstead. 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_sfloating 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_ocamlstrategy forMtime_clock's JavaScript
implementation. Primitives ofmtime.clock.osare now implemented
in pure JavaScript and linked byjs_of_ocaml. This means that the
mtime.clock.jsoolibrary no longer exists, simply link against
mtime.clock.osinstead. 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_sfloating 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.