View Single Post
  #2 (permalink)  
Old 07-01-2007, 07:09 AM
Eric Eric is offline
Senior Member
 
Join Date: Jun 2007
Posts: 111
Eric is on a distinguished road
We've all been there. There are a couple of ways to get the current time in milliseconds. Using the Date class is one them.
Code:
Date now = new Date(); long startTime = now.getTime();
Do the same to get the end time and subtract the 2.

Eric
Reply With Quote