Timing Unbuffered Reads
import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.Date; public class Unbuffered { public static void main(String args[]) { Reader reader; int ch; System.out.println("Start! " + new Date()); try { reader = new FileReader(args[0]); while ((ch = reader.read()) != -1) { // read entire file } } catch (IOException io) { System.err.println(io); System.exit(-1); } System.out.println("Stop! " + new Date()); } }