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; var T2 : DWORD; begin T2 := GetTickCount; if T2 >= T1 then Result := T2 - T1 else Result := MAXDWORD - T1 + T2; end; -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be