Skip to content

Make the bundled bliss timer portable plain C - #946

Merged
james-d-mitchell merged 1 commit into
digraphs:mainfrom
fingolfin:mh/mingw
Sep 11, 2026
Merged

james-d-mitchell merged 1 commit into
digraphs:mainfrom
fingolfin:mh/mingw

Conversation

@fingolfin

Copy link
Copy Markdown
Contributor

timer.cc did not compile on native Windows (mingw, see
gap-system/gap#4157) for lack of sys/times.h. Its times() calls were
already commented out, so the timer computed durations from an
uninitialized struct; use clock() with the matching CLOCKS_PER_SEC
divisor instead, which is standard C, needs no unistd.h or
sys/times.h, and actually measures something.

With this, the whole digraphs kernel module builds and loads on
native Windows.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

timer.cc did not compile on native Windows (mingw, see
gap-system/gap#4157) for lack of sys/times.h. Its times() calls were
already commented out, so the timer computed durations from an
uninitialized struct; use clock() with the matching CLOCKS_PER_SEC
divisor instead, which is standard C, needs no unistd.h or
sys/times.h, and actually measures something.

With this, the whole digraphs kernel module builds and loads on
native Windows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.45%. Comparing base (494e1e4) to head (1f279d6).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #946   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files          50       50           
  Lines       21189    21189           
  Branches      639      639           
=======================================
  Hits        20649    20649           
  Misses        475      475           
  Partials       65       65           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@james-d-mitchell
james-d-mitchell merged commit 8d49e9a into digraphs:main Sep 11, 2026
31 checks passed
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.

2 participants