## Retrieve time since the system was started

This tip is very simple. Just use standard function GetTickCount and the rest is just elementary mathematics.

The declaration of function GetTickCount can be found in Windows unit (Delphi) and it is external kernel function. It retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days (max. number of DWORD type is 4294967295 milliseconds which is 49.7 days).

This tip is very simple. Just use standard function GetTickCount and the rest is just elementary mathematics.

The declaration of function GetTickCount can be found in Windows unit (Delphi) and it is external kernel function. It retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days (max. number of DWORD type is 4294967295 milliseconds which is 49.7 days).