Angus Robertson - Magenta Systems Ltd wrote:
>> I am unfamiliar with GetTickCount.  Is that an API or something?
> it also wraps after 49 days, so
> some care is needed for applications that run longer without a reboot.

For calculating ticks elapsed I use this function:

function CalcTicksAppart(const T1: DWORD): DWORD;
    T2 : DWORD;
    T2 := GetTickCount;
    if T2 >= T1 then
        Result := T2 - T1
        Result := MAXDWORD - T1 + T2;
To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to