From 5a23716c4f10700e9378f66702cd6797475ec30e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 17 Oct 2025 12:01:43 +0900 Subject: Skip low precision clocks to measure performances --- tool/lib/core_assertions.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 7e6dc8e653..1288b8c9aa 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -838,6 +838,9 @@ eom rescue # Constants may be defined but not implemented, e.g., mingw. else + unless Process.clock_getres(clk) < 1.0e-03 + next # needs msec precision + end PERFORMANCE_CLOCK = clk end end -- cgit v1.2.3