45 references to TickCount64
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
156var timeoutTicks = Environment.TickCount64 + InternalTesting.TaskExtensions.DefaultTimeoutDuration;
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (3)
77LastSeenTicks = TimeSpan.FromMilliseconds(Environment.TickCount64); 621LastSeenTicks = TimeSpan.FromMilliseconds(Environment.TickCount64); 653_startedSendTime = TimeSpan.FromMilliseconds(Environment.TickCount64);
Internal\HttpConnectionManager.cs (1)
144var ticks = TimeSpan.FromMilliseconds(Environment.TickCount64);
Microsoft.AspNetCore.Http.Connections.Tests (7)
HttpConnectionDispatcherTests.cs (7)
558connection.LastSeenTicks = TimeSpan.FromMilliseconds(Environment.TickCount64) - disconnectTimeout - TimeSpan.FromTicks(1); 1280var initialTime = TimeSpan.FromMilliseconds(Environment.TickCount64); 1305connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.TickCount64) + options.TransportSendTimeout + TimeSpan.FromTicks(1)); 1321var initialTime = TimeSpan.FromMilliseconds(Environment.TickCount64); 1344connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.TickCount64) + options.TransportSendTimeout + TimeSpan.FromTicks(1)); 1365var initialTime = TimeSpan.FromMilliseconds(Environment.TickCount64); 1388connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.TickCount64) + options.TransportSendTimeout + TimeSpan.FromTicks(1));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (2)
51var currentTick = Environment.TickCount64; 91CreatedTick = Environment.TickCount64;
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (3)
887return connection.GetLifetimeTicks(Environment.TickCount64) > pooledConnectionLifetime.TotalMilliseconds; 898return lifetime == TimeSpan.Zero || connection.GetLifetimeTicks(Environment.TickCount64) > lifetime.TotalMilliseconds; 976long 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)
161_nextPingRequestTimestamp = Environment.TickCount64 + _keepAlivePingDelay; 2085_nextPingRequestTimestamp = Environment.TickCount64 + _keepAlivePingDelay; 2119long now = Environment.TickCount64;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
292GetIdleTicks(Environment.TickCount64) >= _keepAliveTimeoutSeconds * 1000;
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (3)
31private readonly long _creationTickCount = Environment.TickCount64; 99_connectionMetrics?.ConnectionClosed(durationMs: Environment.TickCount64 - _creationTickCount); 115_idleSinceTickCount = Environment.TickCount64;
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; 193NextPingRequestTimestamp = Environment.TickCount64 + DelayMs; 204NextPingRequestTimestamp = Environment.TickCount64 + DelayMs; 239PingTimeoutTimestamp = Environment.TickCount64 + TimeoutMs;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Unix.cs (1)
8public static long TickCount64 => Environment.TickCount64;
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexRunner.cs (2)
351_timeoutOccursAt = Environment.TickCount64 + _timeout; 359if (_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)
889timeoutOccursAt - Environment.TickCount64 <= 0; 892Environment.TickCount64 + timeoutLength;