Booch Posted April 7, 2014 Posted April 7, 2014 If you want to add it to the console then: Globally add your Timer(Import the java class) Presuming you named your Timer "timer" @Override public void onExit() { log("You've ran the script for: " + timer.getElapsed()); //Or something like that timer.stop(); //Sort of redundant when you stop script but I still add it just incase }
olpi Posted April 7, 2014 Author Posted April 7, 2014 Thanks, but I ehm I wanted it to be like in the paint.
Booch Posted April 7, 2014 Posted April 7, 2014 Ah, when I read, "Script ran for" I thought you meant when you stop the script. In that case: public void onPaint(Graphics j) { { j.drawString("Time ran: " + toTimeString(timer.getElapsed()), X-Coordinate, Y-Coordinate); //Replace the coordinate with numbers } }
Booch Posted April 7, 2014 Posted April 7, 2014 You're welcome. If you come across more issues feel free to PM me here. If you need more help add me on Skype: bucial11