Skip to content

0.21.2 --- the monotonic source's granularity is the kernel's tick, the same at every start - #41

Merged
Sunrisepeak merged 1 commit into
mainfrom
0.21.2
Nov 3, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
0.21.2

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

openkal-macos 0.21.2.

The granularity is the machine's. kal_time_monotonic_granularity read the source until it changed, and the difference (41, 42 or more as the reading loop was scheduled) differed from one start of a program to the next. openkal-image's runner compares it among the implementation's facts before it uses a snapshot of a program's initialisers, and declined one on the macOS runner for that difference alone (openkal-image#22: declined: the implementation's facts, or this start's answers, differ; seen before as an intermittent failure).

  • The granularity is the kernel's tick (mach_timebase_info) rounded up: 42 ns on arm64, 1 ns on x86_64. okm::timebase moves to sys.h, shared with the processor time.
  • The conformance suite asserts that another start of a program states the same granularity.

…he same at every start

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
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.

1 participant