+ 1
The class Date()
This class has a method called getTime()which returns how many miliseconds from 1970 till now If I want to increase the milliseconds from 0 and the user click stop How can I do it please
1 Resposta
+ 3
In this case I would use System.currentTimeMillis() or System.nanoTime()
https://www.baeldung.com/java-measure-elapsed-time