45 references to TickCount64
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
156
var timeoutTicks = Environment.
TickCount64
+ InternalTesting.TaskExtensions.DefaultTimeoutDuration;
Microsoft.AspNetCore.Http.Connections (4)
Internal\HttpConnectionContext.cs (3)
77
LastSeenTicks = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
621
LastSeenTicks = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
653
_startedSendTime = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
Internal\HttpConnectionManager.cs (1)
144
var ticks = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
Microsoft.AspNetCore.Http.Connections.Tests (7)
HttpConnectionDispatcherTests.cs (7)
558
connection.LastSeenTicks = TimeSpan.FromMilliseconds(Environment.
TickCount64
) - disconnectTimeout - TimeSpan.FromTicks(1);
1280
var initialTime = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
1305
connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.
TickCount64
) + options.TransportSendTimeout + TimeSpan.FromTicks(1));
1321
var initialTime = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
1344
connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.
TickCount64
) + options.TransportSendTimeout + TimeSpan.FromTicks(1));
1365
var initialTime = TimeSpan.FromMilliseconds(Environment.
TickCount64
);
1388
connection.TryCancelSend(TimeSpan.FromMilliseconds(Environment.
TickCount64
) + options.TransportSendTimeout + TimeSpan.FromTicks(1));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (2)
51
var currentTick = Environment.
TickCount64
;
91
CreatedTick = Environment.
TickCount64
;
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (3)
887
return connection.GetLifetimeTicks(Environment.
TickCount64
) > pooledConnectionLifetime.TotalMilliseconds;
898
return lifetime == TimeSpan.Zero || connection.GetLifetimeTicks(Environment.
TickCount64
) > lifetime.TotalMilliseconds;
976
long nowTicks = Environment.
TickCount64
;
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (7)
34
private 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>
56
if (Environment.
TickCount64
< renewTicks)
78
_failedProxies[uri] = Environment.
TickCount64
+ FailureTimeoutInMilliseconds;
96
if (_failedProxies.Count > LargeProxyConfigBoundary && Environment.
TickCount64
>= Interlocked.Read(ref _nextFlushTicks))
122
long curTicks = Environment.
TickCount64
;
136
Interlocked.Exchange(ref _nextFlushTicks, Environment.
TickCount64
+ FlushFailuresTimerInMilliseconds);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (3)
161
_nextPingRequestTimestamp = Environment.
TickCount64
+ _keepAlivePingDelay;
2085
_nextPingRequestTimestamp = Environment.
TickCount64
+ _keepAlivePingDelay;
2119
long now = Environment.
TickCount64
;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
292
GetIdleTicks(Environment.
TickCount64
) >= _keepAliveTimeoutSeconds * 1000;
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (3)
31
private 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)
970
long start = socket.IsUnderlyingHandleBlocking && socket.SendTimeout > 0 ? Environment.
TickCount64
: 0; // Get ticks only if timeout is set and socket is blocking.
1023
if (socket.IsUnderlyingHandleBlocking && socket.SendTimeout > 0 && (Environment.
TickCount64
- start) >= socket.SendTimeout)
System.Net.WebSockets (4)
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (4)
70
long now = Environment.
TickCount64
;
193
NextPingRequestTimestamp = Environment.
TickCount64
+ DelayMs;
204
NextPingRequestTimestamp = Environment.
TickCount64
+ DelayMs;
239
PingTimeoutTimestamp = Environment.
TickCount64
+ TimeoutMs;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Unix.cs (1)
8
public static long TickCount64 => Environment.
TickCount64
;
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexRunner.cs (2)
351
_timeoutOccursAt = Environment.
TickCount64
+ _timeout;
359
if (_checkTimeout && Environment.
TickCount64
>= _timeoutOccursAt)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
367
if ((timeoutOccursAt != 0 && Environment.
TickCount64
> timeoutOccursAt) || // if there's an active timer
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
341
if (Environment.
TickCount64
>= timeoutOccursAt)
364
timeoutOccursAt = Environment.
TickCount64
+ _timeout;
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.cs (2)
889
timeoutOccursAt - Environment.
TickCount64
<= 0;
892
Environment.
TickCount64
+ timeoutLength;