diff --git a/lib/core_assertions.rb b/lib/core_assertions.rb index 00d180f..02038aa 100644 --- a/lib/core_assertions.rb +++ b/lib/core_assertions.rb @@ -835,6 +835,9 @@ def assert_all_assertions_foreach(msg = nil, *keys, &block) 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