@Test
	public void testEfficiency() throws Exception {
		File directory = new File(".");
		long startTime, endTime;
		int times = 100;
		
		startTime = System.currentTimeMillis();
		for (int i = 0; i < times; i++) {
			testRunTime(directory,new WhileLinesConter());
		}
		endTime= System.currentTimeMillis();
		System.out.println("average time :" +( endTime- startTime)*1.0/times);
		
		startTime = System.currentTimeMillis();
		for (int i = 0; i < times; i++) {
			testRunTime(directory,new RecursionLinesCounter());
		}
		endTime= System.currentTimeMillis();
		
		System.out.println("average time :" +( endTime- startTime)*1.0/times);

	}