Thread
:
problem with timer
View Single Post
#
2
(
permalink
)
07-01-2007, 07:09 AM
Eric
Senior Member
Join Date: Jun 2007
Posts: 111
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
Eric
View Public Profile
Send a private message to Eric
Find all posts by Eric