Hi everyone, Ive created timer. How can I change the timer format to second so that it wont be long number? Thanks
private long startTime = System.currentTimeMillis();
Timer timer = new Timer(1000, this);
timer.start();
timer.stop();
long endTime = System.currentTimeMillis();
long timeInMilliseconds = (endTime - startTime);