void (long duration) { // Manual duration does not need any automatic calculation if (!durationShouldBeSetExplicitly()) { if (duration >= 0) { if (myDuration == null) { myDuration = duration; } else { myDuration += duration; } } else { // Invalidates duration of this suite myDuration = null; myDurationIsCached = false; } } // Invalidates duration of container suite final SMTestProxy containerSuite = getParent(); if (containerSuite != null) { containerSuite.invalidateCachedDurationForContainerSuites(duration); } }