Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CLOCK_BOOTTIME and mach_continuous_time #44

Closed
wants to merge 1 commit into from

Conversation

bikallem
Copy link
Contributor

@bikallem bikallem commented Aug 1, 2022

Fixes #10

@dbuenzli
Copy link
Owner

dbuenzli commented Oct 5, 2022

Thanks, your patch is in as a7bfe32 (I added a few doc bits it).

@dbuenzli dbuenzli closed this Oct 5, 2022
@@ -51,14 +54,14 @@ CAMLprim value ocaml_mtime_clock_elapsed_ns (value unit)
static uint64_t start = 0L;
if (start == 0L) { start = mach_absolute_time (); }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record there is a bug here. You forgot to update that to mach_continuous_time.

dbuenzli added a commit that referenced this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify/document sleep behaviour
2 participants