long start = System.currentTimeMillis();


....


long finish = System.currentTimeMillis();
long timeElapsed = finish - start;

System.out.println("----------------------------------------------------");
System.out.println(timeElapsed);
System.out.println("----------------------------------------------------");