3 references to GetElapsedTime
System.Threading.RateLimiting (3)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
293
if (RateLimiterHelper.
GetElapsedTime
(_lastReplenishmentTick, nowTicks) < _options.Window && !_options.AutoReplenishment)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
299
if (RateLimiterHelper.
GetElapsedTime
(_lastReplenishmentTick, nowTicks) < ReplenishmentPeriod && !_options.AutoReplenishment)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
314
add = _fillRate * RateLimiterHelper.
GetElapsedTime
(_lastReplenishmentTick, nowTicks).Ticks;