/******************************************************************************************************************* * * Returns the time this unit of work took to complete. * ******************************************************************************************************************/ @Nonnull public Duration getDuration() { return new Duration(getStartTime().getMillis(), endTime); } }