title: Precise time measurement in Java
body: <p>Java gives access to two method to get the current time: <code>System.nanoTime()</code> and <code>System.currentTimeMillis()</code>. The first one gives a result in nanoseconds, but the actual accuracy is much worse than that (many microseconds).</p>
  
  <p>Is the JVM already providing the best possible value for each particular machine?
  Otherwise, is there some Java library that can give finer measurement, possibly by being tied to a particular system?</p>