RdtscPx

This function executes "RDTSC" (Opcode : 0F 31) instruction with process affinity mask.

"RDTSC" : Loads the current value of the processor’s timestamp counter into the EDX:EAX registers.

Syntax

BOOL RdtscPx(
    PDWORD eax,
    PDWORD edx,
    DWORD_PTR processAffinityMask
);

Parameters

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Remarks

You can check whether "RDTSC" instruction is supported on your system with IsTsc.

Requirements