Skip to content

Read the coarse clock from std::chrono instead of winmm - #109

Open
mischa85 wants to merge 2 commits into
OpenTS-Developers:mainfrom
mischa85:portable-coarse-clock
Open

Read the coarse clock from std::chrono instead of winmm#109
mischa85 wants to merge 2 commits into
OpenTS-Developers:mainfrom
mischa85:portable-coarse-clock

Conversation

@mischa85

@mischa85 mischa85 commented Sep 2, 2026

Copy link
Copy Markdown

timeGetTime becomes Host_Milliseconds(). One steady_clock inline in the new hostclock.h at 29 call sites, all of which measure intervals. A second commit marks the remaining timeBeginPeriod/timeEndPeriod calls Windows-only; those still set process-wide wait granularity.

Behaviour preserved: steady_clock is boot-relative on MSVC, so readings keep timeGetTime's magnitude and its 49.7-day wrap, and resolution is finer, never coarser. No configuration, format, save, network, or interface change, so existing documentation stays accurate.

mischa85 added a commit to mischa85/OpenTS that referenced this pull request Sep 2, 2026
mischa85 added a commit to mischa85/OpenTS that referenced this pull request Sep 2, 2026
mischa85 added a commit to mischa85/OpenTS that referenced this pull request Sep 3, 2026
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