endTimeMillis = Calendar.getInstance().getTimeInMillis(); long elapsed = endTimeMillis - startTimeMillis; int hours = (int)elapsed/3600000; int minutes = (int)(elapsed - hours*3600000)/60000; int seconds = (int)(elapsed - hours*3600000 - minutes*60000)/1000; String elapsedTimeString = null; if(hours == 0 && minutes == 0){ elapsedTimeString = seconds + " seconds"; }else if(hours == 0){ elapsedTimeString = minutes + " minutes " + seconds + " seconds"; }else{ elapsedTimeString = hours + " hours " + minutes + " minutes " + seconds + " seconds"; } System.out.println("Total time elapsed: " + elapsedTimeString);
    public void endTests(Properties configuration) {    }