63 references to TickCount64
aspire (5)
Bundles\BundleService.cs (3)
341var badPath = $"{activeVersionDir}{BadSuffixPrefix}{Environment.TickCount64}"; 380var badPath = $"{activeVersionDir}{BadSuffixPrefix}{Environment.TickCount64}"; 529var renamedPath = $"{linkPath}.old.{Environment.TickCount64}";
Utils\FileDeleteHelper.cs (2)
46var renamedPath = $"{path}.old.{Environment.TickCount64}"; 82var renamedPath = $"{path}.old.{Environment.TickCount64}";
Aspire.TerminalHost (2)
TerminalReplica.cs (2)
575var deadline = Environment.TickCount64 + 2_000; 578while (Environment.TickCount64 < deadline && !ct.IsCancellationRequested)
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (3)
90LastSeenTicks = TimeSpan.FromMilliseconds(Environment.TickCount64); 991LastSeenTicks = TimeSpan.FromMilliseconds(Environment.TickCount64); 1023_startedSendTime = TimeSpan.FromMilliseconds(Environment.TickCount64);
Internal\HttpConnectionManager.cs (1)
144var ticks = TimeSpan.FromMilliseconds(Environment.TickCount64);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
TlsEventPump.cs (2)
424SweepExpiredHandshakes(Environment.TickCount64); 686HandshakeDeadlineTimestamp = ComputeHandshakeDeadline(Environment.TickCount64),
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (2)
51var currentTick = Environment.TickCount64; 91CreatedTick = Environment.TickCount64;
System.Diagnostics.Process (3)
System\Diagnostics\Process.Multiplexing.cs (1)
689long remaining = deadline - Environment.TickCount64;
System\Diagnostics\Process.Multiplexing.Unix.cs (2)
54long deadline = timeoutMs >= 0 ? Environment.TickCount64 + timeoutMs : long.MaxValue; 284? Environment.TickCount64 + timeoutMs
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
1089long nowTicks = Environment.TickCount64;
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (7)
34private long _nextFlushTicks = Environment.TickCount64 + FlushFailuresTimerInMilliseconds; 44/// <returns>If the proxy can be used, <see cref="Immediate"/>. Otherwise, the next <see cref="Environment.TickCount64"/> that it should be used.</returns> 56if (Environment.TickCount64 < renewTicks) 78_failedProxies[uri] = Environment.TickCount64 + FailureTimeoutInMilliseconds; 96if (_failedProxies.Count > LargeProxyConfigBoundary && Environment.TickCount64 >= Interlocked.Read(ref _nextFlushTicks)) 122long curTicks = Environment.TickCount64; 136Interlocked.Exchange(ref _nextFlushTicks, Environment.TickCount64 + FlushFailuresTimerInMilliseconds);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
165_nextPingRequestTimestamp = Environment.TickCount64 + _keepAlivePingDelay; 2210_nextPingRequestTimestamp = Environment.TickCount64 + _keepAlivePingDelay; 2244long now = Environment.TickCount64;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
293GetIdleTicks(Environment.TickCount64) >= _keepAliveTimeoutSeconds * 1000;
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (4)
30private readonly long _creationTickCount = Environment.TickCount64; 163if (GlobalHttpSettings.MetricsHandler.IsGloballyEnabled) _connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 179_idleSinceTickCount = Environment.TickCount64; 234internal TimeSpan Age => TimeSpan.FromMilliseconds(GetLifetimeTicks(Environment.TickCount64));
System\Net\Http\SocketsHttpHandler\SocketsHttpConnectionEvictionContext.cs (1)
80public TimeSpan Age => TimeSpan.FromMilliseconds(Environment.TickCount64 - _creationTickCount);
System.Net.Sockets (2)
System\Net\Sockets\SocketPal.Unix.cs (2)
970long start = socket.IsUnderlyingHandleBlocking && socket.SendTimeout > 0 ? Environment.TickCount64 : 0; // Get ticks only if timeout is set and socket is blocking. 1023if (socket.IsUnderlyingHandleBlocking && socket.SendTimeout > 0 && (Environment.TickCount64 - start) >= socket.SendTimeout)
System.Net.WebSockets (4)
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (4)
70long now = Environment.TickCount64; 147NextPingRequestTimestamp = Environment.TickCount64 + DelayMs; 158NextPingRequestTimestamp = Environment.TickCount64 + DelayMs; 193PingTimeoutTimestamp = Environment.TickCount64 + TimeoutMs;
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
255public static int TickCount => (int)TickCount64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelThreadBlocker.cs (2)
152long deadline = Environment.TickCount64 + timeoutMs; 163timeoutMs = (int)(deadline - Environment.TickCount64);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ManualResetEventSlim.cs (1)
539startTime = Environment.TickCount64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreSlim.cs (1)
328startTime = Environment.TickCount64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (1)
293startTime = Environment.TickCount64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimeoutHelper.cs (1)
24ulong elapsedMilliseconds = (ulong)(Environment.TickCount64 - startTime);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Timer.cs (6)
45internal static readonly (long TickCount, DateTime Time) s_tickCountToTimeMap = (Environment.TickCount64, DateTime.UtcNow); 129long elapsed = Environment.TickCount64 - _currentTimerStartTicks; 141_currentTimerStartTicks = Environment.TickCount64; 164private long _currentAbsoluteThreshold = Environment.TickCount64 + ShortTimersThresholdMilliseconds; 194long nowTicks = Environment.TickCount64; 345long nowTicks = Environment.TickCount64;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (2)
53long dueTimeMs = Environment.TickCount64 + (int)actualDuration; 95long currentTimeMs = Environment.TickCount64;
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexRunner.cs (2)
353_timeoutOccursAt = Environment.TickCount64 + _timeout; 362if (_checkTimeout && Environment.TickCount64 >= _timeoutOccursAt)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
367if ((timeoutOccursAt != 0 && Environment.TickCount64 > timeoutOccursAt) || // if there's an active timer
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
341if (Environment.TickCount64 >= timeoutOccursAt) 364timeoutOccursAt = Environment.TickCount64 + _timeout;
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.cs (2)
884timeoutOccursAt - Environment.TickCount64 <= 0; 887Environment.TickCount64 + timeoutLength;