andzelmaz
Members
-
Joined
-
Last visited
Solutions
-
andzelmaz's post in Script run timer and how to make the script start to run was marked as the answerlong startTime = System.currentTimeMillis();
public void onPaint(Graphics g) {
Date date = new Date(System.currentTimeMillis() - startTime);
DateFormat formatter = new SimpleDateFormat("HH:mm:ss");
formatter.setTimeZone(TimeZone.getTimeZone("UTC"));
String dateFormatted = formatter.format(date);
g.drawString("Runtime: " + dateFormatted , 300, 320);
}