Aracılığıyla paylaş


IHttpSysRequestTimingFeature.TryGetElapsedTime Yöntem

Tanım

Verilen iki zamanlama arasındaki geçen süreyi alır.

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

Parametreler

startingTimestampType
HttpSysRequestTimingType

Zaman aralığının başlangıcını işaret eden zaman damgası türü.

endingTimestampType
HttpSysRequestTimingType

Zaman aralığının sonunu işaret eden zaman damgası türü.

elapsed
TimeSpan

TimeSpan Başlangıç ve bitiş zaman damgaları arasında geçen süre için bir.

Döndürülenler

Verilen her iki zamanlama da ayarlandıysa (sıfır olmayan) true.

Şunlara uygulanır