package liianxi;
public class Time {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
long a = System.currentTimeMillis();
for (int i = 0; i < 10000000; i++) {
System.out.println(i);
}
long b = System.currentTimeMillis();
//System.exit(0);
System.out.println(b-a);
}
}
发个帖子交流交流吧
|
|