Share via


IHttpSysRequestTimingFeature.TryGetTimestamp Method

Definition

Gets the timestamp for the given timing.

public bool TryGetTimestamp (Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType timestampType, out long timestamp);
abstract member TryGetTimestamp : Microsoft.AspNetCore.Server.HttpSys.HttpSysRequestTimingType * int64 -> bool
Public Function TryGetTimestamp (timestampType As HttpSysRequestTimingType, ByRef timestamp As Long) As Boolean

Parameters

timestampType
HttpSysRequestTimingType

The timestamp type to get.

timestamp
Int64

The value of the timestamp if set.

Returns

True if the given timing was set (i.e., non-zero).

Remarks

These timestamps were obtained using QueryPerformanceCounter https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter and the timestamp frequency can be obtained via QueryPerformanceFrequency https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency.

Applies to