I have a button named Check In. My aim is on click to change the text and start counting the time. The timer has to stop at the next click. It should give the t
Check In
You can use System.currentTimeMillis() (or create a new Date or GregorianCalendar instance) on click.
System.currentTimeMillis()
Date
GregorianCalendar
Save it somewhere. On next click do the same. Then compare the times.