Introduction - If you have any usage issues, please Google them yourself
Delphi: Delphi source code download tools to read and write memory, embedded CPU cycles calculated manipulation library (Author: Housi Song).
function CPUCycleCounter (): int64 register {get current CPU cycle count (CPU cycles)}
function CPUTimeCounter (): Extended {get the current time count (us), the use of internal CPU instruction is completed}
function GetCPUFrequency (): int64 overload {get CPU clock speed, accurate and fast}
{$ ENDIF}
These functions, and certainly inadequate, and even many need to be perfected, first so that we can exchange.