Skip to content

Commit b292bba

Browse files
authored
Merge pull request #20 from tompng/sync_windows_clock_id
Sync ruby/ruby#14866
2 parents 64837e6 + 80e441f commit b292bba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/core_assertions.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ def assert_all_assertions_foreach(msg = nil, *keys, &block)
835835
rescue
836836
# Constants may be defined but not implemented, e.g., mingw.
837837
else
838+
unless Process.clock_getres(clk) < 1.0e-03
839+
next # needs msec precision
840+
end
838841
PERFORMANCE_CLOCK = clk
839842
end
840843
end

0 commit comments

Comments
 (0)