Indy 9
GetTickCount
See Also, Unit: IdGlobal
Retrieves the number of milliseconds since the computer was started.
function GetTickCount: Cardinal;
Unit
IdGlobal
Return Value
Cardinal - Number of milliseconds (ticks).
Description
GetTickCount is a Cardinal function used to retrieve the number of milliseconds since the computer was started. GetTickCount is often used when calculating the response times for Indy components such as TIdEcho and TIdTime.

GetTickCount encapsulates the platform-specific calls necessary to provide a high resolution timer for fixed duration events. On the Windows platform, the function used is Windows.GetTickCount. On the Linux platform, GetTickCount uses the library function clock adjusted to thousandths of CLOCKS_PER_SECs.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.