다음을 통해 공유


TimeSpanExtensions.WithJitter(TimeSpan, Double) 메서드

정의

제안된 지연의 0~10% 사이의 균일한 분포를 생성하고 시간에 따라 요청을 분산하는 임의 노이즈로 지연에 추가합니다.

public static TimeSpan WithJitter(this TimeSpan delay, double multiplier = 0.1);
static member WithJitter : TimeSpan * double -> TimeSpan
<Extension()>
Public Function WithJitter (delay As TimeSpan, Optional multiplier As Double = 0.1) As TimeSpan

매개 변수

delay
TimeSpan

요청된 지연입니다.

multiplier
Double

승수입니다.

반환

균일하게 분산된 시간 범위입니다.

적용 대상