다음을 통해 공유


IHttpSysRequestTimingFeature.TryGetElapsedTime 메서드

정의

지정된 두 타이밍 사이의 경과된 시간을 가져옵니다.

public bool TryGetElapsedTime (Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType startingTimestampType, Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType endingTimestampType, out TimeSpan elapsed);
abstract member TryGetElapsedTime : Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType * Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType * TimeSpan -> bool
Public Function TryGetElapsedTime (startingTimestampType As HttpSysRequestTimingType, endingTimestampType As HttpSysRequestTimingType, ByRef elapsed As TimeSpan) As Boolean

매개 변수

startingTimestampType
HttpSysRequestTimingType

기간의 시작을 표시하는 타임스탬프 형식입니다.

endingTimestampType
HttpSysRequestTimingType

기간의 끝을 표시하는 타임스탬프 형식입니다.

elapsed
TimeSpan

TimeSpan 시작 타임스탬프와 종료 타임스탬프 사이의 경과된 시간에 대한 입니다.

반환

True이면 지정된 타이밍이 모두 설정되었습니다(예: 0이 아닌 경우).

적용 대상