Skip to content

Use CLOCK_MONOTONIC if available#342

Open
cmeerw wants to merge 1 commit into
DeusData:mainfrom
cmeerw:fix-clock-monotonic
Open

Use CLOCK_MONOTONIC if available#342
cmeerw wants to merge 1 commit into
DeusData:mainfrom
cmeerw:fix-clock-monotonic

Conversation

@cmeerw
Copy link
Copy Markdown
Contributor

@cmeerw cmeerw commented May 12, 2026

Only fall back to hardcoded values if CLOCK_MONOTONIC is not defined

@cmeerw
Copy link
Copy Markdown
Contributor Author

cmeerw commented May 12, 2026

Should have mentioned, this fixes NetBSD (and likely other BSD) build, as NetBSD has #define CLOCK_VIRTUAL 1 and #define CLOCK_MONOTONIC 3

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