I use some kind of stopwatch in my project and I have
start time ex: 18:40:10 h stop time ex: 19:05:15 h
I need a result from those two
Assuming you are using java.util.Date:
long totalTime = endDate.getTime() - startDate.getTime();
The result will be the total time in milliseconds.