strange problem about the execution speed time
i have a strange problem in one of my programs, this mean it doesn't always take the same time to finish tehe programm on the school server, i fastly made a test programm and it doesnt either have always the same execution time. Could it be that the Interpretation of the java code doesn't always take the same time?
here is my test code :
import java.io.*;
import java.util.*;
public class test2{
public static void main (String args[]){
int i,j, k; //nombre de reines
int tmp=0;
Date start=new Date();
for (i=0; i<30000; i++) {
for (j=0; j<30000;j++) {
for (k=0; k<1; k++) {
tmp += 1;
tmp -= 1;
}
}
}
Date stop=new Date();
long temps=stop.getTime()-start.getTime();
System.out.println("Temps d'�x�cution: "+temps+" secondes");
}
}
the ressources on the server are always the same so it can't be because of surpopulation on the server.
if anyone has an idea, that could help me a lot.
thanks.

