I have written a small program in java , and I need to know the time
that this program took to execute in milliseconds , so what should I do
??
thank you.
Roedy Green - 13 Jan 2006 03:33 GMT
>I have written a small program in java , and I need to know the time
>that this program took to execute in milliseconds , so what should I do
see http://mindprod.com/jgloss/time.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Bocanegra - 13 Jan 2006 08:38 GMT
public void anyMethod() {
long tiempo=System.currentTimeMillis();
...
// do anything
...
System.out.println("Time in millis of the method:
"+(System.currentTimeMillis()-tiempo));
}