[ https://issues.apache.org/jira/browse/OAK-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933199#comment-13933199 ]
Julian Reschke edited comment on OAK-1535 at 3/13/14 1:03 PM: -------------------------------------------------------------- {code} package org.apache.jackrabbit.oak.stats; import java.util.ArrayList; import java.util.List; public class Accuracy { public static void main(String[] args) { List<Long> values = new ArrayList<Long>(); long end = System.currentTimeMillis() + 1000; long last = System.currentTimeMillis(); long current = last; do { current = System.currentTimeMillis(); if (current != last) { values.add(current); } last = current; } while (current < end); for (int i = 1; i < values.size(); i++) { System.out.println(values.get(i) + " " + (values.get(i) - values.get(i - 1))); } } } {code} seems to return 10ms most of the time... was (Author: reschke): package org.apache.jackrabbit.oak.stats; import java.util.ArrayList; import java.util.List; public class Accuracy { public static void main(String[] args) { List<Long> values = new ArrayList<Long>(); long end = System.currentTimeMillis() + 1000; long last = System.currentTimeMillis(); long current = last; do { current = System.currentTimeMillis(); if (current != last) { values.add(current); } last = current; } while (current < end); for (int i = 1; i < values.size(); i++) { System.out.println(values.get(i) + " " + (values.get(i) - values.get(i - 1))); } } } seems to return 10ms most of the time... > ClockTest.testClockDrift failures > --------------------------------- > > Key: OAK-1535 > URL: https://issues.apache.org/jira/browse/OAK-1535 > Project: Jackrabbit Oak > Issue Type: Bug > Components: core > Affects Versions: 0.18 > Reporter: Julian Reschke > Fix For: 0.20 > > > This test frequently fails for me on Windows. > I modified the test to report the actual drift, and the highest difference > appears to be 27ms. -- This message was sent by Atlassian JIRA (v6.2#6252)