I have a button named
Check In
On the first click create a variable:
long startTime = System.currentTimeMillis();
Then on the second click you can calculate the difference:
long difference = System.currentTimeMillis() - startTime;
difference / 1000
will give you the difference in seconds. Hope this helps.