142 references to FromMilliseconds
mscorlib (2)
system\runtime\remoting\lifetimeservices.cs (1)
43private static long s_pollTimeTicks = TimeSpan.FromMilliseconds(10000).Ticks;
system\runtime\remoting\remotingconfigparser.cs (1)
1840case "ms": span = TimeSpan.FromMilliseconds(value); break;
PresentationCore (53)
Core\CSharp\System\Windows\Input\InputManager.cs (1)
203_inputTimer.Interval = TimeSpan.FromMilliseconds(125);
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
279_inertiaTimer.Interval = TimeSpan.FromMilliseconds(15);
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
327_restoreDT.Interval = TimeSpan.FromMilliseconds(100);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
2686expirationTime += TimeSpan.FromMilliseconds(50); // This compensation is roughly one frame of video
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (1)
378childEndOfActivePeriod += TimeSpan.FromMilliseconds(50); // This compensation is roughly one frame of video
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
673_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 907_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
284TimeSpan offsetTime = TimeSpan.FromMilliseconds((double)offset);
Core\CSharp\System\Windows\Media\HostVisual.cs (1)
295TimeSpan.FromMilliseconds(1000),
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
284timeoutSpan = TimeSpan.FromMilliseconds(-1);
Core\CSharp\System\Windows\Media\MediaContext.cs (3)
712_estimatedNextVSyncTimer.Interval = TimeSpan.FromMilliseconds(17); 1210if ((nextPresentationTicks - _estimatedNextPresentationTime.Ticks) * _animationRenderRate > TimeSpan.FromMilliseconds(500).Ticks) 2840private TimeSpan _timeDelay = TimeSpan.FromMilliseconds(10);
PresentationFramework (13)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2649timer.Interval = TimeSpan.FromMilliseconds(SystemParameters.MenuShowDelay);
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
331ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetInitialShowDelay(o)); 525ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetShowDuration(o)); 595ToolTipTimer.Interval = TimeSpan.FromMilliseconds(ToolTipService.GetBetweenShowDelay(o));
src\Framework\System\Windows\Controls\Primitives\RepeatButton.cs (2)
127_timer.Interval = TimeSpan.FromMilliseconds(Delay); 150TimeSpan interval = TimeSpan.FromMilliseconds(Interval);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (1)
8722_cleanupDelay.Interval = TimeSpan.FromMilliseconds(500.0);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
2743timer.Interval = TimeSpan.FromMilliseconds(delay);
src\Framework\System\windows\Documents\CaretElement.cs (1)
912Duration blinkDuration = new Duration(TimeSpan.FromMilliseconds(blinkInterval * 2));
src\Framework\System\windows\Documents\TextEditor.cs (1)
539_mouseSelectionState.Timer.Interval = TimeSpan.FromMilliseconds(Math.Max(SystemParameters.MenuShowDelay, 200));
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
765_sortedResolvedKeyFrames[index]._resolvedKeyTime = TimeSpan.FromMilliseconds( 999_sortedResolvedKeyFrames[currentKeyFrameIndex]._resolvedKeyTime = prePacedBlockKeyTime + TimeSpan.FromMilliseconds(
src\Framework\System\Windows\SystemParameters.cs (1)
819return TimeSpan.FromMilliseconds(MouseHoverTimeMilliseconds);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
125animation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds)); // Repeat every 3 seconds
SMSvcHost (1)
System\ServiceModel\Activation\MsmqActivation.cs (1)
564static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue);
System (4)
net\System\Net\_Connection.cs (1)
851TimeSpan.FromMilliseconds(ServicePoint.MaxIdleTime) <
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (1)
748return TimeSpan.FromMilliseconds(result);
regex\system\text\regularexpressions\Regex.cs (1)
63private static readonly TimeSpan MaximumMatchTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue - 1);
regex\system\text\regularexpressions\RegexRunner.cs (1)
267throw new RegexMatchTimeoutException(runtext, runregex.pattern, TimeSpan.FromMilliseconds(timeout));
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (2)
12readonly TimeSpan DefaultBackoffMultiplier = TimeSpan.FromMilliseconds(100); 29return TimeSpan.FromMilliseconds
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208this.tryHideTimer.Interval = TimeSpan.FromMilliseconds(200);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\RegularExpressionAttribute.cs (1)
111: Regex = new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds((double)MatchTimeoutInMilliseconds));
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (1)
208this.tryHideTimer.Interval = TimeSpan.FromMilliseconds(200);
System.IdentityModel (7)
System\IdentityModel\BoundedCache.cs (7)
102_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 147_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 194_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 251_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1)); 284_readWriteLock.AcquireReaderLock(TimeSpan.FromMilliseconds(-1)); 315_readWriteLock.AcquireReaderLock(TimeSpan.FromMilliseconds(-1)); 347_readWriteLock.AcquireWriterLock(TimeSpan.FromMilliseconds(-1));
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
51public static readonly TimeSpan InfiniteTimeout = TimeSpan.FromMilliseconds(UInt32.MaxValue);
System.Runtime.Caching (2)
System\Caching\Configuration\MemoryCacheElement.cs (1)
57TimeSpan.FromMilliseconds(ConfigUtil.DefaultPollingTimeMilliseconds),
System\Caching\MemoryCacheStatistics.cs (1)
188return TimeSpan.FromMilliseconds(_configPollingInterval);
System.ServiceModel (12)
System\ServiceModel\Channels\HttpChannelHelpers.cs (3)
3645TimeSpan.FromMilliseconds(response.GetResponseStream().ReadTimeout)), webException)); 3675return SocketConnection.ConvertTransferException((SocketException)ioException.InnerException, TimeSpan.FromMilliseconds(request.Timeout), exception); 3683return SR.GetString(SR.HttpRequestTimedOut, request.RequestUri, TimeSpan.FromMilliseconds(request.Timeout));
System\ServiceModel\Channels\MsmqReceiveHelper.cs (1)
39Thread.Sleep(TimeSpan.FromMilliseconds(MillisecondsToSleep));
System\ServiceModel\Channels\PipeConnection.cs (2)
1786if (timeout >= TimeSpan.FromMilliseconds(backoffBufferMilliseconds * 2)) 1788backoffTimeout = TimeoutHelper.Add(timeout, TimeSpan.Zero - TimeSpan.FromMilliseconds(backoffBufferMilliseconds));
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
273interval = TimeSpan.FromMilliseconds(Convert.ToDouble(milliseconds));
System\ServiceModel\Channels\SharedConnectionListener.cs (2)
1252new BackoffTimeoutHelper(TimeSpan.MaxValue, TimeSpan.FromMilliseconds(pollMax), TimeSpan.FromMilliseconds(pollMin));
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
1688base.Connection.Write(encodedSize, 0, bytesEncoded, false, TimeSpan.FromMilliseconds(this.WriteTimeout));
System\ServiceModel\Channels\UtilityExtension.cs (1)
45pruneInterval = TimeSpan.FromMilliseconds(PruneIntervalMilliseconds + new Random(Process.GetCurrentProcess().Id).Next(PruneIntervalMilliseconds));
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
30this.commitNotLaterThan = DateTime.UtcNow + TimeSpan.FromMilliseconds(shared.TransactionTimeout.TotalMilliseconds * 4 / 5);
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (1)
269return diff < TimeSpan.FromMilliseconds(1).Ticks || (max > 0 && diff / (double) max < 1e-3);
System.ServiceModel.Discovery (4)
System\ServiceModel\Discovery\Configuration\FindCriteriaElement.cs (1)
151new TimeSpanOrInfiniteValidator(TimeSpan.FromMilliseconds(1), TimeSpan.MaxValue),
System\ServiceModel\Discovery\DiscoveryDefaults.cs (3)
39udpBE.RetransmissionSettings.DelayLowerBound = TimeSpan.FromMilliseconds(50); 40udpBE.RetransmissionSettings.DelayUpperBound = TimeSpan.FromMilliseconds(250); 41udpBE.RetransmissionSettings.MaxDelayPerRetransmission = TimeSpan.FromMilliseconds(500);
System.ServiceModel.Internals (4)
System\Runtime\BackoffTimeoutHelper.cs (1)
14readonly static TimeSpan defaultInitialWaitTime = TimeSpan.FromMilliseconds(1);
System\Runtime\IOThreadCancellationTokenSource.cs (1)
25: this(TimeSpan.FromMilliseconds(timeout))
System\Runtime\TimeoutHelper.cs (2)
15public static readonly TimeSpan MaxWait = TimeSpan.FromMilliseconds(Int32.MaxValue); 44return TimeSpan.FromMilliseconds(milliseconds);
System.Transactions (1)
System\Transactions\TransactionTable.cs (1)
214return TimeSpan.FromMilliseconds( (tx.AbsoluteTimeout - this.ticks) * this.timerInterval );
System.Web (5)
Configuration\RegexMatchTimeoutValidator.cs (1)
9private static readonly TimeSpan _maxValue = TimeSpan.FromMilliseconds(Int32.MaxValue - 1); // from Regex.cs
UI\Page.cs (1)
246private static readonly TimeSpan _maxAsyncTimeout = TimeSpan.FromMilliseconds(Int32.MaxValue);
Util\RegexUtil.cs (3)
18return Regex.IsMatch(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 28return Regex.Match(stringToMatch, pattern, regOption, TimeSpan.FromMilliseconds((double)timeout)); 38return new Regex(pattern, option, TimeSpan.FromMilliseconds((double)timeout));
System.Web.DataVisualization (1)
Common\General\ChartElement.cs (1)
1297 span = TimeSpan.FromMilliseconds(interval);
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1297 span = TimeSpan.FromMilliseconds(interval);
WindowsBase (22)
Base\MS\Internal\WeakEventTable.cs (1)
424Dispatcher.Invoke((Action)OnShutDown, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(300));
Base\System\Windows\SplashScreen.cs (1)
314_dt.Interval = TimeSpan.FromMilliseconds(30); // shoot for ~30 fps
Base\System\Windows\Threading\Dispatcher.cs (16)
562Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 579Invoke(callback, priority, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 602Invoke(callback, priority, cancellationToken, TimeSpan.FromMilliseconds(-1)); 644timeout != TimeSpan.FromMilliseconds(-1)) 711return Invoke(callback, DispatcherPriority.Send, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 737return Invoke(callback, priority, CancellationToken.None, TimeSpan.FromMilliseconds(-1)); 769return Invoke(callback, priority, cancellationToken, TimeSpan.FromMilliseconds(-1)); 814timeout != TimeSpan.FromMilliseconds(-1)) 1133return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, null, 0); 1159return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, arg, 1); 1187return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, CombineParameters(arg, args), -1); 1298return LegacyInvokeImpl(DispatcherPriority.Normal, TimeSpan.FromMilliseconds(-1), method, args, -1); 1323return LegacyInvokeImpl(priority, TimeSpan.FromMilliseconds(-1), method, args, -1); 1403timeout != TimeSpan.FromMilliseconds(-1)) 1413timeout = TimeSpan.FromMilliseconds(-1); 1468Debug.Assert(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.FromMilliseconds(-1));
Base\System\Windows\Threading\DispatcherOperation.cs (2)
191return Wait(TimeSpan.FromMilliseconds(-1)); 622TimeSpan.FromMilliseconds(-1));
Base\System\Windows\Threading\DispatcherTimer.cs (2)
33Initialize(Dispatcher.CurrentDispatcher, priority, TimeSpan.FromMilliseconds(0)); 53Initialize(dispatcher, priority, TimeSpan.FromMilliseconds(0));