Document boottime calls, add Go wrappers - #372
Closed
nicholasberlin wants to merge 1 commit into
Closed
Conversation
nicholasberlin
force-pushed
the
time-since-boot
branch
2 times, most recently
from
August 5, 2026 18:32
133607b to
690fe53
Compare
nicholasberlin
force-pushed
the
time-since-boot-docs
branch
3 times, most recently
from
August 6, 2026 17:48
3469abf to
ada5b67
Compare
quark_update_boottime(3), quark_get_boottime(3) and quark_time_to_wallclock(3) shipped in the time-since-boot branch without manpages; every other exported function has one. Add the three pages, list them in quark(7), and regenerate the HTML docs and README. The pages document which times are expressed since boot, that btime comes from /proc/stat and moves on clock steps, and the two common ways of detecting a step (polling the CLOCK_REALTIME - CLOCK_BOOTTIME delta or a TFD_TIMER_CANCEL_ON_SET timerfd). The Go bindings learn UpdateBoottime(), Boottime() and TimeToWallclock(), mirroring the C calls, with a non-root test. CHANGES also gains a note that quark_socket times are expressed since boot as well, which the 0.8 entry missed.
nicholasberlin
force-pushed
the
time-since-boot-docs
branch
from
August 13, 2026 13:46
ada5b67 to
2724c9a
Compare
This was referenced Aug 13, 2026
Merged
Contributor
Author
|
Superseded by single-concern PRs, one per concern:
The code in those PRs is identical to this one. |
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.
Follow-up to #368 (now merged, rebased onto main), closing the gaps noted there:
quark_time_to_wallclock(3), listed in quark(7), with the HTML docs
regenerated. The pages document which times are expressed since boot,
that btime comes from /proc/stat and moves on clock steps, and two
common ways of detecting a step (polling the CLOCK_REALTIME -
CLOCK_BOOTTIME delta, or a timerfd armed with
TFD_TIMER_CANCEL_ON_SET). Each page carries a HISTORY section noting
the calls appeared in quark 0.8, when all times handed out by quark
switched from epoch to since-boot, so readers on older versions
aren't misled.
and TimeToWallclock(), mirroring the C calls, plus a non-root test
(passes locally; TestQuark still requires root).
Also:
close_time in the BREAKING, SILENTLY bullet, which had missed them,
and gains a bullet for the new Go calls.
mandoc -Tlint passes on the new pages, go vet and gofmt are clean.