• src/xpdev/genwrap.c genwrap.h

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed May 27 21:34:35 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/813bfe634d45360f0caa6abc
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Add fast millisecond timer wrapper

    Add xp_fast_timer64_ms() beside the existing xp_fast_timer64()
    wrapper. The new helper keeps the coarse/fast clock preference used by
    the seconds timer, but returns millisecond ticks for callers that need sub-second scheduling without the full precision cost of xp_timer().

    On Unix this prefers CLOCK_MONOTONIC_COARSE or CLOCK_MONOTONIC_FAST
    when available, then falls back through the existing monotonic choices.
    On Windows it mirrors the fast timer path through GetTickCount(), which
    already maps to GetTickCount64() on newer WINVER builds.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)