adding run time on my java program -


i have java program , add code show run time calculating, have no idea how can that?

try following:

        long start = system.currenttimemillis();          //execute code here          long runtime = system.currenttimemillis() - start;          system.out.println("runtime "+runtime+" ms"); 

more system.currenttimemillis() function here


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -