you should definitely get a runtime set up in there
public void onStart() {
startTime = System.currentTimeMillis();
}
public String format(long time) {
StringBuilder string = new StringBuilder();
long totalSeconds = time / 1000L;
long totalMinutes = totalSeconds / 60L;
long totalHours = totalMinutes / 60L;
int seconds = (int)totalSeconds % 60;
int minutes = (int)totalMinutes % 60;
int hours = (int)totalHours % 24;
if (hours > 0) {
string.append(hours + "h ");
}
if (minutes > 0) {
string.append(minutes + "m ");
}
string.append(seconds +"s");
return string.toString();
}
g.drawString("Runtime: " + format((System.currentTimeMillis()-startTime)), 555, 418);