public long getElapsedTime(ChronoUnit unit) {
        return unit.between(executionMoment, completionMoment == null ? exceptionMoment : completionMoment);
    }
Convenience method to measure elapsed time between start of query execution and completion or exception as appropriate. Do not call with a null argument or before a query has executed/exploded.
@param unit the time unit to convert to
@return the elapsed time in the given unit
core/src/main/java/org/jdbi/v3/core/statement/StatementContext.java