Skip to content

Use CLOCK_BOOTTIME and mach_continuous_time#44

Closed
bikallem wants to merge 1 commit intodbuenzli:masterfrom
bikallem:correct-sleep-behaviour
Closed

Use CLOCK_BOOTTIME and mach_continuous_time#44
bikallem wants to merge 1 commit intodbuenzli:masterfrom
bikallem:correct-sleep-behaviour

Conversation

@bikallem
Copy link
Copy Markdown
Contributor

@bikallem bikallem commented Aug 1, 2022

Fixes #10

@dbuenzli
Copy link
Copy Markdown
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
Copy Markdown
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.

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