String (TestConsoleProperties consoleProperties) { return switch (getMagnitudeInfo()) { case PASSED_INDEX -> !isSubjectToHide(consoleProperties) ? getDurationString() : null; case RUNNING_INDEX -> // pad duration with zeros, like "1m 02 s 003 ms" to avoid annoying flickering !isSubjectToHide(consoleProperties) ? getDurationPaddedString() : null; case COMPLETE_INDEX, FAILED_INDEX, ERROR_INDEX, IGNORED_INDEX, SKIPPED_INDEX, TERMINATED_INDEX -> getDurationString(); default -> null; }; }