/** Returns the time taken by the last operation. */ public long getLastInterval() throws IllegalStateException { if (taskList.size() == 0) throw new IllegalStateException("No tests run: can't get last interval"); TaskInfo ti = (TaskInfo) taskList.get(taskList.size() - 1); return ti.getTime(); }