code: @Override
    public void close() {
      stopWatch.stop();
  
      if (logger.isLoggable(logLevel)) {
        final StringBuilder sb = new StringBuilder();
        log(sb.append(EXIT_PREFIX).append(msg).append(DURATION).append(stopWatch.getTime()).toString());
      }
    }
docs: The close() will be called when the object is to deleted. It stops the timer and logs the time elapsed.