Duration getElapsedTime() {
    return Duration.between(startTime, clock.instant());
  }
Gets the total elapsed time since creation.

@return the total elapsed time
jib-core/src/main/java/com/google/cloud/tools/jib/builder/Timer.java