IHttpSysRequestTimingFeature.TryGetTimestamp Methode

Definition

Ruft den Zeitstempel für den angegebenen Zeitpunkt ab.

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

Parameter

timestampType
HttpSysRequestTimingType

Der abzurufende Zeitstempeltyp.

timestamp
Int64

Der Wert des Zeitstempels, falls festgelegt.

Gibt zurück

True, wenn das angegebene Timing festgelegt wurde (d. h. ungleich 0).

Hinweise

Diese Zeitstempel wurden mit QueryPerformanceCounter https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter abgerufen, und die Zeitstempelhäufigkeit kann über QueryPerformanceFrequency https://learn.microsoft.com/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequencyabgerufen werden.

Gilt für: