/** * Appends the timing statistics with the specified string builder. * * @param level the current level of the task tree * @param stringBuilder the specified string builder */ private void appendTimingStat(final int level, final StringBuilder stringBuilder) { stringBuilder.append(toString()); for (int i = 0; i < leaves.size(); i++) { final Stopwatch leaf = leaves.get(i); stringBuilder.append(getIndentBlanks(level * 2)); leaf.appendTimingStat(level + 1, stringBuilder); } }
/** * Appends the timing statistics with the specified string builder. * * @param level the current level of the task tree * @param stringBuilder the specified string builder */ private void appendTimingStat(final int level, final StringBuilder stringBuilder) { stringBuilder.append(toString()); for (int i = 0; i < leaves.size(); i++) { final Stopwatch leaf = leaves.get(i); stringBuilder.append(getIndentBlanks(level * 2)); leaf.appendTimingStat(level + 1, stringBuilder); } }