//+
long t0, t1;
System.out.println("Press return when ready");
t0=System.currentTimeMillis();
int b;
do {
b = System.in.read();
} while (b!='\r" && b != '\n");
t1=System.currentTimeMillis();
double deltaT = t1-t0;
System.out.println("You took " +
DecimalFormat.getInstance().format(deltaT/1000.) + " seconds.");
//-