IHttpSysRequestTimingFeature.TryGetElapsedTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the elapsed time between the two given timings.
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
Parameters
- startingTimestampType
- HttpSysRequestTimingType
The timestamp type marking the beginning of the time period.
- endingTimestampType
- HttpSysRequestTimingType
The timestamp type marking the end of the time period.
Returns
True if both given timings were set (i.e., non-zero).