public class benchm { public static void main(String args[]){ System.out.println("Starting multiplication of two doubles in 10^4 * 10^4 loops:") ; double i,j,k=0; long tcalc; long begin = System.currentTimeMillis() ; for(i=1; i<10000; i++) for(j=1; j<10000; j++) k = i*j ; tcalc = (System.currentTimeMillis() - begin); System.out.println("Compute Time (ms): " +tcalc) ; } }