Files
cpu-miner/miner.c
Davide Grilli 8709072574 perf(miner): use CLOCK_MONOTONIC_COARSE and counter-based rate reporting
Replace time() syscall with clock_gettime(CLOCK_MONOTONIC_COARSE) and
gate timestamp/rate checks behind a batch counter to avoid clock overhead
on every iteration. Set reporting interval to 2s.
2026-03-30 10:42:40 +02:00

6.3 KiB