title: Java: Getting time with currentTimeMillis() as a long, how do I output it with X decimal place accuracy?
body: <p>I have a long that represents <code>System.currentTimeMillis()</code>. I then took another measurement of the time into a long var later in my code. I subtracted the two but now want to see that time to 3 decimal places.</p>
  
  <p>Currently I use <code>%d</code> to format my output when printing the long var and get only non-decimal values.</p>