IHttpSysRequestTimingFeature.TryGetElapsedTime 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得兩個指定時間之間的經過時間。
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
時間戳記類型,標示時間週期的結尾。
傳回
True 是表示 如果兩個指定的計時都設定 (,亦即非零) 。