TCatIoGetCpuCounter
The TCatIoGetCpuCounter function returns the current CPU counter value.
LRESULT TCatIoGetCpuCounter( __int64* pnCount );
Parameters
pnCount
Address of a 64 bit integer variable to receive the current CPU counter value.
Return Values
If the function fails, the return value is non zero.
Remarks
TCatIoGetCpuCounter reads the counter value of the Pentium CPU.
QuickInfo
For Windows NT:
- Windows NT Version: Requires version 4.0 or later.
- TwinCAT: Requires version 2.5 or later.
- Header: Declared in TCatIoApi.h.
- Import Library: Use TCatIoDrv.lib.
For Windows CE:
- Windows CE Version: Requires version 4.2 or later.
- Image Version: Requires version 1.90 or later.
- Header: Declared in TCatIoW32Api.h.
- Import Library: Use TCatIoDrvW32.lib.