共用方式為


IHttpSysRequestTimingFeature.Timestamps 屬性

定義

取得所有 Http.Sys 計時時間戳

public ReadOnlySpan<long> Timestamps { get; }
member this.Timestamps : ReadOnlySpan<int64>
Public ReadOnly Property Timestamps As ReadOnlySpan(Of Long)

屬性值

備註

這些時間戳是使用QueryPerformanceCounter https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter 取得,而時間戳頻率可透過QueryPerformanceFrequency https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency取得。 計時的索引可以轉換成 HttpSysRequestTimingType,以瞭解計時代表什麼。 如果目前要求無法使用計時,此值可能是 0。

適用於