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
Post a Comment