System\Windows\Media\Animation\Clock.cs (12)
606if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.TimeSpan > TimeSpan.Zero)
1957if (_currentDuration.HasTimeSpan) // For finite duration, use modulo arithmetic to compute current iteration
2191Debug.Assert(_resolvedDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _resolvedDuration has a value."); // We must have a computed duration
2192Debug.Assert(_currentDuration.HasTimeSpan, "ComputeCurrentIterationWithGrow should only be called when _currentDuration has a value.");
2341if (_currentDuration.HasTimeSpan) // Finite duration, need to apply accel/decel
2481if (_currentDuration.HasTimeSpan && _currentDuration.TimeSpan == TimeSpan.Zero)
2498Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan.");
2511Debug.Assert(_resolvedDuration.HasTimeSpan, "_resolvedDuration is invalid, neither Forever nor a TimeSpan.");
2512Debug.Assert(_currentDuration.HasTimeSpan, "_currentDuration is invalid, neither Forever nor a TimeSpan.");
3209if (syncClockDuration.HasTimeSpan)
3332else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.TimeSpan)
4004if (!_syncClockResolvedDuration.HasTimeSpan)