Closed MariusBgm closed 3 months ago
FYI @VDanielEdwards steady_clock::now() is weird on windows in RelWithDebInfo builds. Maybe we should switch to native performance counter APIs on Windows
@MariusBgm and @KonradBkd thank you for the fix! I really need to keep clock granularity in mind 😸
Subject
Fix sporadic unit test failures on MSVC RelWithDebInfo builds.
Description
Turns out that the calls to
steady_clock::now()
return the same value sometimes (on Windows!). Those calls are now wrapped and checked against the previous value and it's ensured that the timestamp increases strictly monotonically.Instructions for review / testing
Developer checklist (address before review)