Problem is you have two Date instances and you want to get the elapsed time between them. Getting the number of seconds is easy, you can just take the difference of value returned by the getTime() method. long elapsed = end.getTime() - start.getTime(); But what if you want to know how many days, hours and […]
Trending Articles
More Pages to Explore .....