68 references to TimeSpan
PresentationCore (67)
Core\CSharp\System\Windows\DurationConverter.cs (1)
125
return new InstanceDescriptor(mi, new object[] { durationValue.
TimeSpan
});
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
668
lockObtained = _canWriteEvent.WaitOne(timeout.
TimeSpan
, false);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (28)
622
if (!_resolvedDuration.HasTimeSpan || _resolvedDuration.
TimeSpan
> TimeSpan.Zero)
1977
if (_currentDuration.
TimeSpan
== TimeSpan.Zero) // We must be post-filling if we have gotten here
2092
optimizedOffsetFromBegin = MultiplyTimeSpan(_resolvedDuration.
TimeSpan
, scalingFactor);
2107
localProgress = TimeSpan.FromTicks(offsetFromBegin.Ticks % _currentDuration.
TimeSpan
.Ticks);
2108
newIteration = (int)(offsetFromBegin.Ticks / _resolvedDuration.
TimeSpan
.Ticks); // Iteration count starting from 0
2127
localProgress = _currentDuration.
TimeSpan
;
2146
localProgress = _currentDuration.
TimeSpan
- localProgress;
2163
timeUntilNextBoundary = DivideTimeSpan(_currentDuration.
TimeSpan
, Math.Abs(parentSpeed));
2167
TimeSpan decelBegin = MultiplyTimeSpan(_currentDuration.
TimeSpan
, 1.0 - _timeline.DecelerationRatio);
2172
TimeSpan accelEnd = MultiplyTimeSpan(_currentDuration.
TimeSpan
, _timeline.AccelerationRatio);
2215
if (offsetFromBegin < _currentDuration.
TimeSpan
) // We fall within the same iteration as during last tick
2223
long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.
TimeSpan
).Ticks;
2225
localProgress = TimeSpan.FromTicks(offsetOnLaterIterations % _resolvedDuration.
TimeSpan
.Ticks);
2226
iterationIncrement = 1 + (int)(offsetOnLaterIterations / _resolvedDuration.
TimeSpan
.Ticks);
2232
_currentIterationBeginTime += _currentDuration.
TimeSpan
+ MultiplyTimeSpan(_resolvedDuration.
TimeSpan
, iterationIncrement - 1);
2240
_currentIterationBeginTime -= _resolvedDuration.
TimeSpan
;
2244
_currentIterationBeginTime -= _currentDuration.
TimeSpan
;
2361
Debug.Assert(_currentDuration.
TimeSpan
> TimeSpan.Zero, "ComputeCurrentTime was entered with _currentDuration <= 0");
2371
double durationInTicks = (double)_currentDuration.
TimeSpan
.Ticks;
2499
if (_currentDuration.HasTimeSpan && _currentDuration.
TimeSpan
== TimeSpan.Zero)
2525
effectiveDuration = MultiplyTimeSpan(_currentDuration.
TimeSpan
, scalingFactor);
2546
presentAndFutureDuration = ((double)_currentDuration.
TimeSpan
.Ticks) * presentAndFutureIterations;
2550
presentAndFutureDuration = ((double)_currentDuration.
TimeSpan
.Ticks) // Current iteration; below is the future iteration length
2551
+ ((double)_resolvedDuration.
TimeSpan
.Ticks) * (presentAndFutureIterations - 1);
3231
_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.Ticks % syncClockDuration.
TimeSpan
.Ticks);
3353
else if (syncDuration.HasTimeSpan && syncTimeST >= syncDuration.
TimeSpan
)
3362
_syncData.PreviousRepeatTime += syncDuration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\ClockController.cs (2)
187
offset = offset + duration.
TimeSpan
;
229
offset = offset + duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (1)
146
if ((!duration.HasTimeSpan || duration.
TimeSpan
> TimeSpan.Zero)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
649
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
649
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
649
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
649
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
649
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (12)
869
|| appliedSpeedRatio > period.
TimeSpan
.Ticks) // If the speed ratio is high enough the period will effectively be 0
887
long periodInTicks = (long)((double)period.
TimeSpan
.Ticks / appliedSpeedRatio);
995
|| appliedSpeedRatio > period.
TimeSpan
.Ticks) // If the speed ratio is high enough the period will effectively be 0
1000
long periodInTicks = (long)((double)period.
TimeSpan
.Ticks / appliedSpeedRatio);
1043
Debug.Assert(!period.HasTimeSpan || period.
TimeSpan
> TimeSpan.Zero || beginTime == endTime); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime
1058
long periodInTicks = period.
TimeSpan
.Ticks; // Start by folding the point into its place inside a simple duration
1169
Debug.Assert(!period.HasTimeSpan || period.
TimeSpan
> TimeSpan.Zero || (endTime.HasValue && beginTime == endTime)); // Check the consistency of degenerate case where simple duration is zero; expiration time should equal beginTime
1180
&& (_nodeTime[_count - 1] > endTime.Value + fillDuration.
TimeSpan
// ...we intersect space after endTime+fill, or...
1181
|| (_nodeTime[_count - 1] == endTime.Value + fillDuration.
TimeSpan
// ...as we fall right onto the end of fill zone...
1182
&& _nodeIsPoint[_count - 1] && (endTime > beginTime || fillDuration.
TimeSpan
> TimeSpan.Zero)))); // ...we may have a point intersection with the stopped zone
1192
bool includeFillPeriod = !fillDuration.HasTimeSpan || fillDuration.
TimeSpan
> TimeSpan.Zero; // This variable represents whether we have a non-zero fill zone
1200
long periodInTicks = period.
TimeSpan
.Ticks;
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
288
timeoutSpan = timeout.
TimeSpan
;
PresentationFramework (1)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
741
calculationDuration = duration.
TimeSpan
;