Skip to content

Add CLOCK_MONOTONIC, implemented using uptime - #265

Open
mvolfik wants to merge 1 commit into
HelenOS:masterfrom
mvolfik:clock-monotonic
Open

Add CLOCK_MONOTONIC, implemented using uptime#265
mvolfik wants to merge 1 commit into
HelenOS:masterfrom
mvolfik:clock-monotonic

Conversation

@mvolfik

@mvolfik mvolfik commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

According to docstring, getuptime guarantees monotonicity, so we can use it to implement CLOCK_MONOTONIC from posix/time.h. Monotonic clock is useful, and needed for Rust support. (I had this code in my branch for a while, but figured I could merge this upstream.)

@le-jzr le-jzr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants