Java: What is the unit of the difference of two System.currentTimeMillis?
<p>What is the unit of the difference of two System.currentTimeMillis ?</p>

<pre><code>start = System.currentTimeMillis();
longoperation();
elapsedTime = System.currentTimeMillis() - start;
</code></pre>

<p>What is the unit of elapsed time here. It doesn't look like milliseconds.
Is the above code segment the right way to find the time taken to execute longoperation()?</p>
