add caml_get_wall_clock -- similar to caml_get_monotonic_time#31
Merged
Conversation
The motivation is to avoid lots of conversions in mirage-clock just to retrieve the current wall clock time. This is one part to solve mirage/mirage-clock#23 The unix_gettimeofday is still useful for the OCaml runtime system - which uses it to initialize its RNG (the alternative is it being initialized with 0s which is obviously worse) - that's why that symbol is kept as well.
This prepares the integration of OCaml-CI which executes the above for linting.
hannesm
added a commit
to hannesm/opam-repository
that referenced
this pull request
Nov 18, 2021
CHANGES: * Fix OCaml documentation strings (mirage/mirage-xen#30 @hannesm) * Add caml_get_wall_clock to retrieve the wall clock as int64 (mirage/mirage-xen#31 @hannesm) * Don't require opam for the bindings compilation (mirage/mirage-xen#32 @sternenseemann) * Remove checksum_stubs and alloc_pages_stubs (available in mirage-tcpip and io-page), to keep in sync with mirage-solo5 (mirage/mirage-xen#33 @dinosaure, adapted by @hannesm to mirage-xen)
arbipher
pushed a commit
to arbipher/opam-repository
that referenced
this pull request
Nov 21, 2021
CHANGES: * Fix OCaml documentation strings (mirage/mirage-xen#30 @hannesm) * Add caml_get_wall_clock to retrieve the wall clock as int64 (mirage/mirage-xen#31 @hannesm) * Don't require opam for the bindings compilation (mirage/mirage-xen#32 @sternenseemann) * Remove checksum_stubs and alloc_pages_stubs (available in mirage-tcpip and io-page), to keep in sync with mirage-solo5 (mirage/mirage-xen#33 @dinosaure, adapted by @hannesm to mirage-xen)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The motivation is to avoid lots of conversions in mirage-clock just to retrieve
the current wall clock time. This is one part to solve
mirage/mirage-clock#23
The unix_gettimeofday is still useful for the OCaml runtime system - which uses
it to initialize its RNG (the alternative is it being initialized with 0s which
is obviously worse) - that's why that symbol is kept as well.