client/src/main/java/io/hoplin/batch/BatchContext.java
/**
   * Time it took to process this batch message
   *
   * @return time between start and complete time, if ether is null return {@link Duration#ZERO}
   */
Time it took to process this batch message
@return time between start and complete time, if ether is null return  Duration#ZERO
Time it took to process this batch message @return time between start and complete time if ether is null return Duration#ZERO
public Duration duration() {
    if (startedAt == null || completedAt == null) {
      return Duration.ZERO;
    }
    return Duration.between(startedAt.toInstant(), completedAt.toInstant());
  }
public Duration duration ( ) { if ( startedAt == null || completedAt == null ) { return Duration . ZERO ; } return Duration . between ( startedAt . toInstant ( ) , completedAt . toInstant ( ) ) ; }
Time it took to process this batch message
 @return time between start and complete time, if ether is null return {@link Duration#ZERO}
Time it took to process this batch message @return time between start and complete time if ether is null return { @link Duration#ZERO }