updates for 0.9.3
[debian/openrocket] / test / Test.java
1 import net.sf.openrocket.util.Coordinate;
2
3
4 public class Test {
5
6         public static int COUNT = 10000000;
7
8         public static void main(String[] args) {
9
10                 for (int i=1; ; i++) {
11                         long t1 = System.currentTimeMillis();
12                         run();
13                         long t2 = System.currentTimeMillis();
14                         System.out.println("Run " + i + " took " + (t2-t1) + " ms");
15                 }
16                 
17         }
18         
19         
20         private static void run() {
21                 Coordinate a = new Coordinate(1,1,1,1);
22                 Coordinate b = new Coordinate(1,1,1,1);
23                 
24                 for (int i=0; i < COUNT; i++) {
25                         a = a.add(b);
26                 }
27                 System.out.println("value:"+a);
28                 
29                 return;
30         }
31
32 }