Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ConvertAuxiliaryCounterToPerformanceCounter function (realtimeapiset.h)

Converts the specified auxiliary counter value to the corresponding performance counter value; optionally provides the estimated conversion error in nanoseconds due to latencies and maximum possible drift.

Syntax

HRESULT ConvertAuxiliaryCounterToPerformanceCounter(
 [in] ULONGLONG ullAuxiliaryCounterValue,
 [out] PULONGLONG lpPerformanceCounterValue,
 [out, optional] PULONGLONG lpConversionError
);

Parameters

[in] ullAuxiliaryCounterValue

The auxiliary counter value to convert.

[out] lpPerformanceCounterValue

On success, contains the converted performance counter value. Will be undefined if the function fails.

[out, optional] lpConversionError

On success, contains the estimated conversion error, in nanoseconds. Will be undefined if the function fails.

Return value

Returns S_OK if the conversion succeeds; otherwise, returns another HRESULT specifying the error.

Return value Description
S_OK
The function succeeded.
E_NOTIMPL
The auxiliary counter is not supported.
E_BOUNDS
The value to convert is outside the permitted range (+/- 10 seconds from when the called occurred).

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header realtimeapiset.h
Library Mincore.lib
DLL Kernel32.dll

Feedback

Was this page helpful?

Additional resources