FileDocCategorySizeDatePackage
FloatTest.javaAPI DocExample431Thu Apr 27 15:47:22 BST 2000tuning.floats

FloatTest

public class FloatTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    int REPEAT = Integer.parseInt(args[0]);
    double x = 0;
    long time = System.currentTimeMillis();
    for (int i = REPEAT; i > 0; i--)
      x = runtest(i);
    System.out.println(x + " in time " + (System.currentTimeMillis()-time));
  
public static doubleruntest(int i)

    return Math.sqrt(i);