Hello Angus, you are ritght because working with float is more CPU. But GetTickCount roll over every 49 day... So without extra code the timeout can fail if it is (by Murphy's law) just on the particular moment..
--- Rgds, Wilfried http://www.mestdagh.biz Sunday, April 17, 2005, 19:35, Angus Robertson - Magenta Systems Ltd wrote: >> What will happen when someone will change the system time? >> What does (TDataTime-TDataTime) return? miliseconds? > Never use TDateTime to measure time durations in Delphi, instead use > GetTickCount which returns milliseconds since Windows booted as a > simple longword. > Angus -- 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