title: How to check how many milliseconds passed in some event(java)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9707938/calculating-time-difference-in-milliseconds">Calculating time difference in Milliseconds</a>  </p>
  </blockquote>
  
  
  
  <p>How i can check how many milliseconds passed in some event in java?
  For example:</p>
  
  <pre><code>Want to start timer here&lt;&lt;
     function doSomething()
     .
     .
  Want to finish timer here&lt;&lt;
  </code></pre>
  
  <p>I want to check how many milliseconds passed. Is there a way to do it?</p>