title: Calculating time difference in Milliseconds
body: <p>I am making a call to a method by passing ipAddress and it will return back the location of ipAddress like Country, City, etc etc. So I was trying to see how much time it is taking for each call. So I set the start_time before making call to method and end_time after making a call. <strong>So sometimes I get difference as 0</strong>. And resp contains the valid response. </p>
  
  <pre><code>long start_time = System.currentTimeMillis();
  resp = GeoLocationService.getLocationIp(ipAddress);
  long end_time = System.currentTimeMillis();
  long difference = end_time-start_time;
  </code></pre>
  
  <p>So that means sometimes it is taking 0 ms to get the response back. Any suggestions will be appreciated.</p>