Skip to content

Releases: dune-universe/mtime

2.0.0+dune

04 Jan 14:41
4ddda1e
Compare
Choose a tag to compare

CHANGES:

  • Use the new js_of_ocaml ocamlfind META standard to link JavaScript
    stubs (dbuenzli#28).
  • Mtime_clock use CLOCK_BOOTTIME rather than CLOCK_MONOTONIC
    on Linux and mach_continuous_time rather than mach_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_* and Mtime.Span.to_* floating
    points functions. Note that the implementation of Mtime.Span.to_*
    functions was broken if your span exceeded Int64.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

01 Jun 08:20
8656fb2
Compare
Choose a tag to compare

CHANGES:

  • Change the js_of_ocaml strategy for Mtime_clock's JavaScript
    implementation. Primitives of mtime.clock.os are now implemented
    in pure JavaScript and linked by js_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
    the Mtime.Span.(*) operator (dbuenzli#28).

  • Deprecate Mtime.s_to_* and Mtime.*_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

16 Mar 11:16
44fc694
Compare
Choose a tag to compare

CHANGES:

  • Change the js_of_ocaml strategy for Mtime_clock's JavaScript
    implementation. Primitives of mtime.clock.os are now implemented
    in pure JavaScript and linked by js_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
    the Mtime.Span.(*) operator (dbuenzli#28).

  • Deprecate Mtime.s_to_* and Mtime.*_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

15 Feb 11:00
Compare
Choose a tag to compare

CHANGES:

  • Add Windows support. Thanks to Andreas Hauptmann for the patch
    and Corentin Leruth for the integration.