2.21 ГГц, 1.00 ГБ ОЗУ
100000000
19:50:41
19:50:48
1000000000
19:51:33
19:52:37
10000000000
19:54:01
20:04:41
package loop_test;
import java.util.Calendar;
import java.text.SimpleDateFormat;
public class loop_test {
public loop_test() {
}
//public static final String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
//public static final String DATE_FORMAT_NOW = "dd-MMMM-yyyy HH:mm:ss";
public static final String DATE_FORMAT_NOW = "HH:mm:ss";
public static void main(String[] args) {
loop_test lt = new loop_test();
Long j = 0L;
Long n = 10000000000L;
System.out.println(n);
System.out.println(lt.now());
for (Long i = 0L; i < n; i++) {
j++;
Math.sqrt(j);
}
System.out.println(lt.now());
}
public String now() {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
return sdf.format(cal.getTime());
}
}
четверг, 29 октября 2009 г.
Loop time
Log window
JDeveloper didn't show log window
Search for the windowinglayout.xml. In my case it was found in:
~/jdevhome/system/oracle.ide.10.1.3.41.57
After renaming/deleting it, I could get my log window again.
One remark: jDeveloper saves the file after closure. So first close jDeveloper and then remove the file.
Подписаться на:
Сообщения (Atom)