System\Windows\Media\Animation\Clock.cs (12)
620if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero)
1972if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration
2206Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration
2207Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value.");
2356if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel
2496if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero)
2513Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan.");
2526Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan.");
2527Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan.");
3224if (syncClockDuration.HasTimeSpan)
3347else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan)
4027if (!_syncClockResolvedDuration.HasTimeSpan)