I want to record the time using System.currentTimeMillis() when a user begins something in my program. When he finishes, I will subtract the current Syste
System.currentTimeMillis()
Syste
I think the best way is:
String.format("%d min, %d sec", TimeUnit.MILLISECONDS.toSeconds(length)/60, TimeUnit.MILLISECONDS.toSeconds(length) % 60 );