Rdtsc

This function executes "RDTSC" (Opcode : 0F 31) instruction.

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

Syntax

BOOL Rdtsc(
    PDWORD eax,
    PDWORD edx
);

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