Date startingDate = new Date();
Padder titlePadder = new Padder(command);
titlePadder.logTitle(logLevel);
Process statusProcess = executeCommand(workingDirectory, environmentVariables, command, inputText);
String output = IOUtils.read(statusProcess.getInputStream(), logLevel);
<BUG>long elapsedMilliseconds = new Date().getTime() - startingDate.getTime();
LogLevel elapsedTimeLogLevel = elapsedMilliseconds > 1000 ? logLevel : LogLevel.DEBUG;

dynamicLogger.log(elapsedTimeLogLevel, "Execution time {} seconds",
String.valueOf(TimeUnit.MILLISECONDS.toSeconds(elapsedMilliseconds)));
titlePadder.logTitle(logLevel);</BUG>
return output;

Date startingDate = new Date();
Padder titlePadder = new Padder(command);
titlePadder.logTitle(logLevel);
Process statusProcess = executeCommand(workingDirectory, environmentVariables, command, inputText);
String output = IOUtils.read(statusProcess.getInputStream(), logLevel);
long elapsedMilliseconds = new Date().getTime() - startingDate.getTime();
long elapsedTimeInSeconds = TimeUnit.MILLISECONDS.toSeconds(elapsedMilliseconds);
LogLevel elapsedTimeLogLevel = elapsedTimeInSeconds > 1 ? logLevel : LogLevel.DEBUG;
String plural = elapsedTimeInSeconds > 1 ? "s" : "";
dynamicLogger.log(elapsedTimeLogLevel, "Execution time {} second{}", String.valueOf(elapsedTimeInSeconds), plural);
titlePadder.logTitle(logLevel);
return output;
