81 references to TickCount
mscorlib (19)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
336int curMSec = Environment.TickCount;
system\Collections\Concurrent\ConcurrentStack.cs (1)
682Random r = new Random(Environment.TickCount & Int32.MaxValue); // avoid the case where TickCount could return Int32.MinValue
system\diagnostics\eventing\eventsource.cs (4)
5453af.m_activeActivities[currentActivityId] = Environment.TickCount; 5530activeActivities[EventSource.InternalCurrentThreadActivityId] = Environment.TickCount; 5533activeActivities[*childActivityID] = Environment.TickCount; 5703var tickNow = Environment.TickCount;
system\diagnostics\eventing\StubEnvironment.cs (1)
22{ get { return System.Environment.TickCount; } }
system\random.cs (1)
53: this(Environment.TickCount) {
system\runtime\memoryfailpoint.cs (2)
217long now = Environment.TickCount; // Handle wraparound. 352LastTimeCheckingAddressSpace = Environment.TickCount;
system\threading\SpinWait.cs (2)
306int now = Environment.TickCount; 343return (uint)Environment.TickCount;
system\threading\Tasks\Parallel.cs (2)
3582m_timeLimit = Environment.TickCount + timeOut; 3591return (Environment.TickCount > m_timeLimit);
system\threading\Tasks\Task.cs (2)
3310uint startTimeTicks = infiniteWait ? 0 : (uint)Environment.TickCount; 3324uint elapsedTimeTicks = ((uint)Environment.TickCount) - startTimeTicks;
system\threading\threadpool.cs (2)
719int quantumStartTime = Environment.TickCount; 750while ((Environment.TickCount - quantumStartTime) < ThreadPoolGlobals.tpQuantum)
system\threading\timer.cs (1)
97return Environment.TickCount;
PresentationCore (10)
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
346int timeStamp = Environment.TickCount ;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
467ManipulationStartingEventArgs starting = new ManipulationStartingEventArgs(_manipulationDevice, Environment.TickCount);
Core\CSharp\System\Windows\Input\MouseDevice.cs (3)
344int timeStamp = Environment.TickCount; 981int timeStamp = Environment.TickCount; 1035int timeStamp = Environment.TickCount;
Core\CSharp\System\Windows\Input\TextCompositionEventArgs.cs (1)
32public TextCompositionEventArgs(InputDevice inputDevice, TextComposition composition) : base(inputDevice, Environment.TickCount)
Core\CSharp\System\Windows\Input\Touch.cs (1)
44TouchFrameEventArgs args = new TouchFrameEventArgs(Environment.TickCount);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1022TouchEventArgs touchEventArgs = new TouchEventArgs(this, Environment.TickCount);
Core\CSharp\System\Windows\MouseOverProperty.cs (1)
45MouseEventArgs mouseEventArgs = new MouseEventArgs(Mouse.PrimaryDevice, Environment.TickCount, Mouse.PrimaryDevice.StylusDevice);
Core\CSharp\System\Windows\StylusOverProperty.cs (1)
37StylusEventArgs stylusEventArgs = new StylusEventArgs(Stylus.CurrentStylusDevice, Environment.TickCount);
PresentationFramework (4)
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1824_panningInfo.InertiaBoundaryBeginTimestamp = Environment.TickCount; 1899if (Math.Abs(Environment.TickCount - _panningInfo.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
8949int totalMilliseconds = Environment.TickCount - startTickCount; 9263int startMilliseconds = Environment.TickCount;
System (19)
net\System\Net\_TimerThread.cs (5)
71m_StartTimeMilliseconds = Environment.TickCount; 142int now = Environment.TickCount; 539int nowMilliseconds = Environment.TickCount; 670int now = Environment.TickCount; 696int newNow = Environment.TickCount;
net\System\Net\HttpListener.cs (1)
2573int now = ((now = Environment.TickCount) == 0 ? 1 : now);
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
336int curMSec = Environment.TickCount;
regex\system\text\regularexpressions\RegexRunner.cs (2)
221timeoutOccursAt = Environment.TickCount + timeout; 247int currentMillis = Environment.TickCount;
sys\system\collections\concurrent\BlockingCollection.cs (3)
1001startTime = (uint)Environment.TickCount; 1149uint elapsedMilliseconds = (uint)Environment.TickCount - startTime; 1408startTime = (uint)Environment.TickCount;
sys\system\io\ports\SerialPort.cs (7)
962int startTicks = Environment.TickCount; 969timeUsed = Environment.TickCount - startTicks; 1016int startTicks = Environment.TickCount; 1064} while (timeout == SerialPort.InfiniteTimeout || (timeout - GetElapsedTime(Environment.TickCount, startTicks) > 0)); 1234int startTicks = Environment.TickCount; 1261timeNow = Environment.TickCount; 1263timeUsed += Environment.TickCount - timeNow;
System.Core (7)
System\IO\Pipes\Pipe.cs (4)
1183int startTime = Environment.TickCount; 1233while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout); 1266int startTime = Environment.TickCount; 1358while (timeout == Timeout.Infinite || (elapsed = unchecked(Environment.TickCount - startTime)) < timeout);
system\threading\ReaderWriterLockSlim\ReaderWriterLockSlim.cs (3)
251_start = Environment.TickCount; 262_start = Environment.TickCount; 274int elapsed = Environment.TickCount - _start;
System.Management (9)
Instrumentation\EventSource.cs (3)
735uint timeLimitForBatchFlush = (uint)Environment.TickCount + 100; 857if(count == batchSize || ((uint)Environment.TickCount) >= timeLimitForBatchFlush) 883timeLimitForBatchFlush = (uint)Environment.TickCount + 100;
Instrumentation\Instrumentation.cs (6)
492int tickCount = Environment.TickCount; 495lastFire = Environment.TickCount ; 511lastFire = Environment.TickCount; 539lastFire = Environment.TickCount; 587if((Environment.TickCount - lastFire)<100) 595lastFire = Environment.TickCount;
System.ServiceModel (1)
System\ServiceModel\Channels\TcpChannelListener.cs (1)
185static Random randomPortGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
55this.randomNumberGenerator = new SynchronizedRandom(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System\ServiceModel\Channels\UdpUtility.cs (1)
165Random randomNumberGenerator = new Random(AppDomain.CurrentDomain.GetHashCode() | Environment.TickCount);
System.Xml (1)
System\Xml\Core\SecureStringHasher.cs (1)
36this.hashCodeRandomizer = Environment.TickCount;
UIAutomationClient (2)
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
1626long dwTicks = (long)Environment.TickCount; 1629while (InMenuMode() && ((long)Environment.TickCount - dwTicks) < MenuTimeOut)
UIAutomationClientsideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (2)
121long dwTicks = (long)Environment.TickCount; 124while (InMenuMode() && ((long)Environment.TickCount - dwTicks) < MenuTimeOut)
WindowsBase (5)
Base\System\Windows\Threading\Dispatcher.cs (2)
2523PromoteTimers(Environment.TickCount); 2972int delta = dueTimeInTicks - Environment.TickCount;
Base\System\Windows\Threading\DispatcherOperation.cs (1)
566_dispatcher.PromoteTimers(Environment.TickCount);
Base\System\Windows\Threading\DispatcherTimer.cs (2)
166_dueTimeInTicks = Environment.TickCount + (int)_interval.TotalMilliseconds; 278_dueTimeInTicks = Environment.TickCount + (int) _interval.TotalMilliseconds;