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