System.out.println("total duration: " + totalDuration);
System.out.println("total duration: " + totalDuration.toPeriod().toString());
    public Duration calculateDurationPointList(List<TimePoint> pointList) {        Iterator<TimePoint> pointListIt = pointList.iterator();        Duration totalDuration = Duration.ZERO;        while (pointListIt.hasNext()) {            TimePoint point = pointListIt.next();            if (pointListIt.hasNext()) {                TimePoint point2 = pointListIt.next();                totalDuration = totalDuration.plus(new TimeInterval(point.getPoint(), point2.getPoint()).getDuration());            }        }        System.out.println("total duration: " + totalDuration);        return totalDuration;    }