Aracılığıyla paylaş


IHttpSysRequestTimingFeature.TryGetTimestamp Yöntem

Tanım

Verilen zamanlamanın zaman damgasını alır.

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

Parametreler

timestampType
HttpSysRequestTimingType

Alınacak zaman damgası türü.

timestamp
Int64

Ayarlanırsa zaman damgasının değeri.

Döndürülenler

Verilen zamanlama ayarlandıysa (sıfır olmayan) doğru.

Açıklamalar

Bu zaman damgaları QueryPerformanceCounter https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter kullanılarak elde edildi ve zaman damgası sıklığı QueryPerformanceFrequency https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequencyaracılığıyla elde edilebilir.

Şunlara uygulanır