At the login screen it says; Elapsed Time - 00:00:00 and when it actually starts ingame it just says 12:25:06 and stays like that.
So I've added
private long startTime;
final long runTime = System.currentTimeMillis() - startTime;
public final String formatTime(final long ms){
long s = ms / 1000, m = s / 60, h = m / 60;
s %= 60; m %= 60; h %= 24;
return String.format("%02d:%02d:%02d", h, m, s);}
then to onStart I've added
startTime = System.currentTimeMillis();
and onPaint:
g.drawString("Elapsed Time: " + formatTime(startTime), 10, 332);