// time_simeq_thread.java not a great benchmark import java.text.*; class time_simeq_thread { int N; // can use command line int NP; DecimalFormat f1 = new DecimalFormat("0.000E00"); time_simeq_thread(int N, int NP) { this.N = N; this.NP = NP; double A[] = new double[N*N]; double X[] = new double[N]; double Y[] = new double[N]; double t, total; double start, now, next; System.out.println("time_simeq_thread.java running, N="+N+", NP="+NP); start = System.currentTimeMillis(); init_matrix(N, A, Y); now = System.currentTimeMillis(); System.out.println("matrix initialized in "+((now-start)/1000)+" sec"); simeq_thread ST = new simeq_thread(NP); ST.psimeq(NP, N, A, Y, X); // new // new simeq(N, A, Y, X); // old next = System.currentTimeMillis(); total = 0.0; for(int i=0; i