Re: [twsocket] Download time

2005-09-02 Thread Angus Robertson - Magenta Systems Ltd
> You can also use TDateTime, but if the clock on your computer is changed > during time-measuring, you would get the wrong values. Which is a very good reason for not using it! And all the floating point arithmetic and conversion from system time is much slower. QueryPerformanceCounter can b

Re: [twsocket] Download time

2005-09-02 Thread Arno Garrels
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 CalcTicksAppar

Re: [twsocket] Download time

2005-09-02 Thread Bjørnar Nielsen
> GetTickCount returns milliseconds since Windows booted. It's > a core Windows API used for most application timing, although > it only has a resolution of about 20ms (I think), it also > wraps after 49 days, so > some care is needed for applications that run longer without > a reboot. >

Re: [twsocket] Download time

2005-09-02 Thread Angus Robertson - Magenta Systems Ltd
> I am unfamiliar with GetTickCount. Is that an API or something? GetTickCount returns milliseconds since Windows booted. It's a core Windows API used for most application timing, although it only has a resolution of about 20ms (I think), it also wraps after 49 days, so some care is needed fo

Re: [twsocket] Download time

2005-09-02 Thread G. M. Faggiano
erbyte.be - Original Message - From: "G. M. Faggiano" <[EMAIL PROTECTED]> To: Sent: Thursday, September 01, 2005 3:58 AM Subject: [twsocket] Download time > Hello, > > I'm trying to write a little app that downloads a file from my server at > regular int

Re: [twsocket] Download time

2005-09-01 Thread Francois Piette
ompute the mean thruput during those 15 seconds. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "G. M. Faggiano" <[EMAIL PROTECTED]> To: Sent: Thursday, September 01, 2005 3:58 AM Subject: [twsocket] Download time > Hello, > > I'

Re: [twsocket] Download time

2005-08-31 Thread Dan
- Original Message - From: "G. M. Faggiano" <[EMAIL PROTECTED]> To: Sent: Thursday, September 01, 2005 2:58 AM Subject: [twsocket] Download time > Hello, > > I'm trying to write a little app that downloads a file from my server at > regular in

[twsocket] Download time

2005-08-31 Thread G. M. Faggiano
Hello, I'm trying to write a little app that downloads a file from my server at regular intervals and tells me what my true connection speed is. I'm doing this because I use a broadband connection through my lan. So, I have no real way to check my current speed without going to one of those onli