TCatIoGetCpuTime
The TCatIoGetCpuTime function returns the current CPU time.
LRESULT TCatIoGetCpuTime( __int64* pnTime );
Parameters
pnTime
Address of a 64 bit integer variable to receive the current CPU time in units of 100 Ns.
Return Values
If the function fails, the return value is non zero.
Remarks
TCatIoGetCpuTime reads the counter value of the Pentium CPU and scales it to a time value in units of 100 Ns.
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.