public Duration getDuration() {
    return duration;
  }
Gets the duration since the last {@link TimerEvent} for this timer.

@return the duration since the last {@link TimerEvent} for this timer.
jib-core/src/main/java/com/google/cloud/tools/jib/event/events/TimerEvent.java