package mtime
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- v2.0.0 2022-12-02 Zagreb
- v1.4.0 2022-02-17 La Forclaz (VS)
- v1.3.0 2021-10-20 Zagreb
- v1.2.0 2019-07-19 Zagreb
- v1.1.0 2017-06-24 London
- v1.0.0 2017-05-09 La Forclaz (VS)
- v0.8.4 2017-02-05 La Forclaz (VS)
- v0.8.3 2015-12-22 Cambridge (UK)
- v0.8.2 2015-05-17 La Forclaz (VS)
- v0.8.1 2015-03-23 La Forclaz (VS)
- v0.8.0 2015-03-19 La Forclaz (VS)
Monotonic wall-clock time for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
mtime-2.1.0.tbz
sha512=a6619f1a3f1a5b32b7a9a067b939f94e6c66244eb90762d41f2cb1c9af852dd7d270fedb20e2b9b61875d52ba46e24af6ebf5950d1284b0b75b2fd2c380d9af3
doc/CHANGES.html
v2.1.0 2024-09-10 Zagreb
- 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.
v2.0.0 2022-12-02 Zagreb
- Use the new
js_of_ocamlocamlfindMETAstandard to link JavaScript stubs (#28). Mtime_clockuseCLOCK_BOOTTIMErather thanCLOCK_MONOTONICon Linux andmach_continuous_timerather thanmach_absolute_timeon macOS. This means that on these platforms sleep time is taken into account (#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 (#46). - Change implementation of
Mtime.Span.ppand removeMtime.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 (#42).
v1.4.0 2022-02-17 La Forclaz (VS)
- 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 themtime.clock.jsoolibrary no longer exists, simply link againstmtime.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 (#28). - Deprecate
Mtime.s_to_*andMtime.*_to_sfloating point constants (#28). - Require OCaml >= 4.08.
- Allow compiling with MSVC compiler. Thanks to Jonah Beckford for the patch.
v1.3.0 2021-10-20 Zagreb
- Add Windows support. Thanks to Andreas Hauptmann for the patch and Corentin Leruth for the integration.
v1.2.0 2019-07-19 Zagreb
- Add support for node.js. Thanks to Fabian (@copy) for the patch.
- Support for js_of_ocaml 3.4.0.
- Add MTIME_OS environment variable for specifying the OS at build time.
v1.1.0 2017-06-24 London
- Add
Mtime.Span.{add,zero,one,min_span,max_span}.
v1.0.0 2017-05-09 La Forclaz (VS)
This is a major breaking release with a new API. Thanks to David Sheets for contributions and discussions. The API was changed to mirror and follow the conventions and design of Ptime. The Mtime module now only provides platform independent datatypes for supporting monotonic clock readings. Platform dependent access to monotonic clocks is provided by the Mtime_clock modules. The Mtime.t type was added for monotonic timestamps.
- Rename packages
mtime.{jsoo,os}tomtime.{clock.jsoo,clock.os}which implement the newMtime_clockinterface. Themtimepackage has the platform independent support. - Remove
Mtime.available,Mtime_clockfunctions now raiseSys_erroron unsupported platforms or errors. - Add a raw interface to
Mtime_clockwhich statisfies MirageOS's monotonic clock signature. - Move
Mtime.{elapsed,counter,count}toMtime_clock.{elapsed,counter,count}. - Add
Mtime.ta type to represent system-relative monotonic timestamps and related functions. Thanks to David Sheets for the patch and his patience. - Add the
Mtime.Spanmodule for functions on monotonic time spans. Most of the previous platform independent support is now provided by this module. See below. - Move
Mtime.to_ns_uint64toMtime.Span.to_uint64_ns. - Move other
Mtime.to_*toMtime.Span.to_*. - Move
Mtime.pp_span[_s]toMtime.Span.pp[_float__s]. - Add
Mtime.Span.{compare,equal}. Thanks to David Sheets for the patch. - Add
Mtime.Span.of_uint64_ns. Thanks to David Sheets for the patch.
v0.8.4 2017-02-05 La Forclaz (VS)
- Fix package for -custom linking. Thanks to @orbitz for the report.
- Build depend on topkg.
- Relicense from BSD3 to ISC.
v0.8.3 2015-12-22 Cambridge (UK)
- Fix Linux bytecode builds. Thanks to Edwin Török for the report.
- Really make js_of_ocaml an optional dependency.
v0.8.2 2015-05-17 La Forclaz (VS)
- Simpler toploop support (internal change).
- Improve Linux build support by recording link flags against librt in the cma and cmxa (this seems to be needed in certain distributions). Thanks to David Scott for the report and the fix.
v0.8.1 2015-03-23 La Forclaz (VS)
- Fix broken arithmetic on 32-bit platform with POSIX clocks. Thanks to Stephen Dolan for the report and the fix.
v0.8.0 2015-03-19 La Forclaz (VS)
First release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
- v2.0.0 2022-12-02 Zagreb
- v1.4.0 2022-02-17 La Forclaz (VS)
- v1.3.0 2021-10-20 Zagreb
- v1.2.0 2019-07-19 Zagreb
- v1.1.0 2017-06-24 London
- v1.0.0 2017-05-09 La Forclaz (VS)
- v0.8.4 2017-02-05 La Forclaz (VS)
- v0.8.3 2015-12-22 Cambridge (UK)
- v0.8.2 2015-05-17 La Forclaz (VS)
- v0.8.1 2015-03-23 La Forclaz (VS)
- v0.8.0 2015-03-19 La Forclaz (VS)