title: Accurate Sleep for Java on Windows
body: <p>Does anyone know a Library which provides a Thread.sleep() for Java which has an error not higher than 1-2 Millisecond? </p>
  
  <p>I tried a mixture of Sleep, error measurement and BusyWait but I don't get this reliable on different windows machines. </p>
  
  <p>It can be a native implementation if the implementation is available for Linux and MacOS too.</p>
  
  <p><strong>EDIT</strong>
  The link Nick provided ( <a href="http://blogs.oracle.com/dholmes/entry/inside_the_hotspot_vm_clocks" rel="noreferrer">http://blogs.oracle.com/dholmes/entry/inside_the_hotspot_vm_clocks</a> ) is a really good resource to understand the issues all kinds of timers/sleeps/clocks java has.</p>