code Re: structure in Java??# Java - 爪哇娇娃
s*M
1 楼
obvious things can often be wrong though.
here is one of tests i coded. certainly, this is an over simplistic operation
but it does tell sth.
try to run with a counter sesnsible large so that it takes seconds. 10^8~9
should be ok.
public class Test{
public static void main(String[] args){
System.out.println("starting...");
long re=0;
long start = System.currentTimeMillis();
int count=Integer.valueOf(args[0]).intValue();
for(int i=0; i re = re+i;
}
long dur = System.currentTim
here is one of tests i coded. certainly, this is an over simplistic operation
but it does tell sth.
try to run with a counter sesnsible large so that it takes seconds. 10^8~9
should be ok.
public class Test{
public static void main(String[] args){
System.out.println("starting...");
long re=0;
long start = System.currentTimeMillis();
int count=Integer.valueOf(args[0]).intValue();
for(int i=0; i
}
long dur = System.currentTim