Measuring time in Java is easiest to do with the System.currentTimeMillis() method. What you do is that you get the time ...
tutorials.jenkov.com