241 references to TotalMilliseconds
mscorlib (38)
system\runtime\remoting\leasemanager.cs (2)
89leaseTimer.Change((int)pollTime.TotalMilliseconds, Timeout.Infinite); 265leaseTimer.Change((int)pollTime.TotalMilliseconds, Timeout.Infinite);
system\threading\CancellationTokenSource.cs (2)
288long totalMilliseconds = (long)delay.TotalMilliseconds; 427long totalMilliseconds = (long)delay.TotalMilliseconds;
system\threading\CountdownEvent.cs (2)
484long totalMilliseconds = (long)timeout.TotalMilliseconds; 514long totalMilliseconds = (long)timeout.TotalMilliseconds;
system\threading\ManualResetEventSlim.cs (2)
466long totalMilliseconds = (long)timeout.TotalMilliseconds; 497long totalMilliseconds = (long)timeout.TotalMilliseconds;
system\threading\monitor.cs (1)
134long tm = (long)timeout.TotalMilliseconds;
system\threading\readerwriterlock.cs (3)
108long tm = (long)timeout.TotalMilliseconds; 134long tm = (long)timeout.TotalMilliseconds; 193long tm = (long)timeout.TotalMilliseconds;
system\threading\SemaphoreSlim.cs (6)
244Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 252return Wait((int)timeout.TotalMilliseconds, new CancellationToken()); 274Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 282return Wait((int)timeout.TotalMilliseconds, cancellationToken); 571Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 579return WaitAsync((int)timeout.TotalMilliseconds, cancellationToken);
system\threading\SpinLock.cs (2)
227Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 235TryEnter((int)timeout.TotalMilliseconds, ref lockTaken);
system\threading\SpinWait.cs (2)
226Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 234return SpinUntil(condition, (int)timeout.TotalMilliseconds);
system\threading\Tasks\Task.cs (4)
3077long totalMilliseconds = (long)timeout.TotalMilliseconds; 4932long totalMilliseconds = (long)timeout.TotalMilliseconds; 5357long totalMilliseconds = (long)timeout.TotalMilliseconds; 5821long totalMilliseconds = (long)delay.TotalMilliseconds;
system\threading\thread.cs (2)
700long tm = (long)timeout.TotalMilliseconds; 731long tm = (long)timeout.TotalMilliseconds;
system\threading\threadpool.cs (2)
1557long tm = (long)timeout.TotalMilliseconds; 1576long tm = (long)timeout.TotalMilliseconds;
system\threading\timer.cs (4)
869long dueTm = (long)dueTime.TotalMilliseconds; 875long periodTm = (long)period.TotalMilliseconds; 994return Change((long) dueTime.TotalMilliseconds, (long) period.TotalMilliseconds);
system\threading\waithandle.cs (4)
204long tm = (long)timeout.TotalMilliseconds; 377long tm = (long)timeout.TotalMilliseconds; 482long tm = (long)timeout.TotalMilliseconds; 536long tm = (long)timeout.TotalMilliseconds;
PresentationCore (127)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (6)
412currentSegmentProgress = currentTime.TotalMilliseconds 413/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 425currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 426/ segmentDuration.TotalMilliseconds; 674keyTime.Percent * calculationDuration.TotalMilliseconds); 908(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (6)
412currentSegmentProgress = currentTime.TotalMilliseconds 413/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 425currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 426/ segmentDuration.TotalMilliseconds; 674keyTime.Percent * calculationDuration.TotalMilliseconds); 908(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (6)
412currentSegmentProgress = currentTime.TotalMilliseconds 413/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 425currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 426/ segmentDuration.TotalMilliseconds; 674keyTime.Percent * calculationDuration.TotalMilliseconds); 908(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (6)
412currentSegmentProgress = currentTime.TotalMilliseconds 413/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 425currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 426/ segmentDuration.TotalMilliseconds; 674keyTime.Percent * calculationDuration.TotalMilliseconds); 908(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (6)
412currentSegmentProgress = currentTime.TotalMilliseconds 413/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 425currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 426/ segmentDuration.TotalMilliseconds; 674keyTime.Percent * calculationDuration.TotalMilliseconds); 908(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (6)
423currentSegmentProgress = currentTime.TotalMilliseconds 424/ _sortedResolvedKeyFrames[0]._resolvedKeyTime.TotalMilliseconds; 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
686EventTrace.EasyTraceEvent(EventTrace.Keyword.KeywordGraphics, EventTrace.Event.WClientScheduleRender, nextTickNeeded.TotalMilliseconds);
PresentationFramework (5)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (5)
423currentSegmentProgress = currentTime.TotalMilliseconds 436currentSegmentProgress = segmentCurrentTime.TotalMilliseconds 437/ segmentDuration.TotalMilliseconds; 766keyTime.Percent * calculationDuration.TotalMilliseconds); 1000(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System (20)
net\System\Net\Configuration\SettingsSection.cs (1)
180this.downloadTimeout = (ts == TimeSpan.MaxValue || ts == TimeSpan.Zero) ? Timeout.Infinite : (int) ts.TotalMilliseconds;
net\System\Net\FtpWebRequest.cs (4)
588m_RemainingTimeout = Timeout - (int)((DateTime.UtcNow - m_StartTime).TotalMilliseconds); 908m_RemainingTimeout = Timeout - (int)((DateTime.UtcNow - m_StartTime).TotalMilliseconds); 1095m_RemainingTimeout = Timeout - (int)((DateTime.UtcNow - m_StartTime).TotalMilliseconds); 1113m_RemainingTimeout = Timeout - (int)((DateTime.UtcNow - m_StartTime).TotalMilliseconds);
net\System\Net\ServicePoint.cs (1)
524double elapsedDouble = (DateTime.Now - m_IdleSince).TotalMilliseconds;
net\System\Net\WebSockets\WebSocketBase.cs (4)
2197if ((int)keepAliveInterval.TotalMilliseconds > 0) 2260ResetTimer((int)m_KeepAliveInterval.TotalMilliseconds); 2268int keepAliveIntervalMilliseconds = (int)m_KeepAliveInterval.TotalMilliseconds; 2302ResetTimer((int)(m_KeepAliveInterval - idleTime).TotalMilliseconds);
regex\system\text\regularexpressions\RegexRunner.cs (2)
131? (Int32) Regex.InfiniteMatchTimeout.TotalMilliseconds 132: (Int32) (timeout.TotalMilliseconds + 0.5); // Round
security\system\security\cryptography\x509\x509chain.cs (1)
383ChainPara.dwUrlRetrievalTimeout = (uint) Math.Floor(timeout.TotalMilliseconds);
sys\system\collections\concurrent\BlockingCollection.cs (5)
344return TryAddWithNoTimeValidation(item, (int)timeout.TotalMilliseconds, new CancellationToken()); 621return TryTakeWithNoTimeValidation(out item, (int)timeout.TotalMilliseconds, CancellationToken.None, null); 912return TryAddToAnyCore(collections, item, (int)timeout.TotalMilliseconds, CancellationToken.None); 1278return TryTakeFromAnyCore(collections, out item, (int)timeout.TotalMilliseconds, false, CancellationToken.None); 1780long totalMilliseconds = (long)timeout.TotalMilliseconds;
sys\system\threading\Barrier.cs (2)
585Int64 totalMilliseconds = (Int64)timeout.TotalMilliseconds; 591return SignalAndWait((int)timeout.TotalMilliseconds, cancellationToken);
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\LoadRetryExponentialBackoffStrategy.cs (2)
33this.maxDelay.TotalMilliseconds, 34this.multiplier.TotalMilliseconds * random.Next(1, ((2 << power) - 1))
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
252return (Int64)datetimeOffset.TotalMilliseconds;
System.Core (4)
System\Diagnostics\Eventing\Reader\EventLogReader.cs (1)
146timeout = (int)ts.TotalMilliseconds;
System\Diagnostics\Eventing\Reader\ProviderMetadataCachedInformation.cs (2)
145if (timeDifference.TotalMilliseconds >= maxPassedTime) { 146maxPassedTime = timeDifference.TotalMilliseconds;
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (1)
246long ltm = (long)timeout.TotalMilliseconds;
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
1962request.Timeout = (int)Math.Min(Int32.MaxValue, new TimeSpan(0, 0, this.timeout).TotalMilliseconds);
System.Management (2)
managementeventwatcher.cs (1)
428(int) options.Timeout.TotalMilliseconds;
managementobjectcollection.cs (1)
544(int)tag_WBEM_TIMEOUT_TYPE.WBEM_INFINITE : (int)collectionObject.options.Timeout.TotalMilliseconds;
System.Messaging (4)
System\Messaging\MessageEnumerator.cs (2)
158long timeoutInMilliseconds = (long)timeout.TotalMilliseconds; 264long timeoutInMilliseconds = (long)timeout.TotalMilliseconds;
System\Messaging\MessageQueue.cs (2)
2511long timeoutInMilliseconds = (long)timeout.TotalMilliseconds; 3018long timeoutInMilliseconds = (long)timeout.TotalMilliseconds;
System.Runtime.Caching (2)
System\Caching\Configuration\ConfigUtil.cs (1)
62double milliseconds = tValue.TotalMilliseconds;
System\Caching\MemoryCacheStatistics.cs (1)
115double milliseconds = element.PollingInterval.TotalMilliseconds;
System.Runtime.Remoting (1)
channels\http\httpclientchannel.cs (1)
837_timeout = (int)((TimeSpan)value).TotalMilliseconds;
System.ServiceModel (4)
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (1)
741UInt64 milliseconds = Convert.ToUInt64(timeSpan.TotalMilliseconds);
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
103this.meanRtt = Math.Min((long)initRtt.TotalMilliseconds, Constants.MaxMeanRtt >> Constants.TimeMultiplier) << Constants.TimeMultiplier;
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
535return (long)elapsedTime.TotalMilliseconds;
System\ServiceModel\Dispatcher\TransactedBatchContext.cs (1)
30this.commitNotLaterThan = DateTime.UtcNow + TimeSpan.FromMilliseconds(shared.TransactionTimeout.TotalMilliseconds * 4 / 5);
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\DiscoveryClient.cs (2)
1363progress = (int)(elaspedTime.TotalMilliseconds / Duration.TotalMilliseconds * 100);
System\ServiceModel\Discovery\RandomDelayQueuedSendsAsyncResult.cs (1)
44this.maxRandomDelayInMillis = maxRandomDelay.TotalMilliseconds;
System.Transactions (1)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
167returnTimeout = ( Convert.ToUInt32( timeout.TotalMilliseconds, CultureInfo.CurrentCulture ) );
System.Web (8)
Management\AppDomainResourcePerfCounters.cs (2)
120double timeElapsed = (dtUtcNow - _LastCollectTime).TotalMilliseconds; // Total time since last collect 121double cpuTimeUsed = (newTotalCPUTime - _TotalCPUTime).TotalMilliseconds; // Total CPU time used since last collect
Management\webeventbuffer.cs (5)
150_regularFlushIntervalMs = (long)bufferModeInfo.RegularFlushInterval.TotalMilliseconds; 162_urgentFlushIntervalMs = (long)bufferModeInfo.UrgentFlushInterval.TotalMilliseconds; 229((now - _lastAdd).TotalMilliseconds) >= _urgentFlushIntervalMs; 243nowFromStartTime = (long)((now - _startTime).TotalMilliseconds); 372long msSinceLastScheduledFlush = (long)(nowUtc - _lastScheduledFlushTime).TotalMilliseconds;
UI\LegacyPageAsyncTaskManager.cs (1)
355double timerPeriod = (_timeoutEnd - utcNow).TotalMilliseconds;
System.Web.DataVisualization (1)
Common\General\AxisScale.cs (1)
1385 double mlSeconds = timeSpan.TotalMilliseconds;
System.Windows.Forms.DataVisualization (1)
Common\General\AxisScale.cs (1)
1385 double mlSeconds = timeSpan.TotalMilliseconds;
WindowsBase (16)
Base\System\Windows\SplashScreen.cs (2)
339double progress = (_fadeoutEnd - dtNow).TotalMilliseconds / _fadeoutDuration.TotalMilliseconds;
Base\System\Windows\Threading\Dispatcher.cs (5)
643if( timeout.TotalMilliseconds < 0 && 813if( timeout.TotalMilliseconds < 0 && 1402if( timeout.TotalMilliseconds < 0 && 1468Debug.Assert(timeout.TotalMilliseconds >= 0 || timeout == TimeSpan.FromMilliseconds(-1)); 1481if(timeout.TotalMilliseconds >= 0)
Base\System\Windows\Threading\DispatcherOperation.cs (2)
212timeout.TotalMilliseconds != 0) 617if(timeout.TotalMilliseconds > 0)
Base\System\Windows\Threading\DispatcherTimer.cs (7)
91if (interval.TotalMilliseconds < 0) 94if (interval.TotalMilliseconds > Int32.MaxValue) 154if (value.TotalMilliseconds < 0) 157if (value.TotalMilliseconds > Int32.MaxValue) 166_dueTimeInTicks = Environment.TickCount + (int)_interval.TotalMilliseconds; 278_dueTimeInTicks = Environment.TickCount + (int) _interval.TotalMilliseconds; 280if (_interval.TotalMilliseconds == 0 && _dispatcher.CheckAccess())