Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages
Started by Steffan Kahn
Mon, 01 Nov 2004 11:46
open a website and mess the parse time
Author: Steffan Kahn
Date: Mon, 01 Nov 2004 11:46
Date: Mon, 01 Nov 2004 11:46
27 lines
1485 bytes
1485 bytes
Hello,
in my application i need to open a website and mess the parse time. at the
moment i use following lines:
start = GetTickCount();
try
{
HTTP->Tag = 1;
HTTP->Port = 80;
HTTP->Get(Website);
Source = HTTP->Body;
}
catch (...)
{
}
diff = GetTickCount()-start;
This works fine. To check if my results are plausible i also display the
parse time on my website. so i found out, that the time my c++ application
determine is always bigger then the parse time, which my website displays.
so i ask me if there is an better way to get the parse time.
does anybody have some advise for me?
Steffan
Re: open a website and mess the parse time
Author: hans galema
Date: Mon, 01 Nov 2004 12:42
Date: Mon, 01 Nov 2004 12:42
35 lines
2025 bytes
2025 bytes
Steffan Kahn wrote: > in my application i need to open a website and mess the parse time. at the > moment i use following lines: > > start = GetTickCount(); > HTTP->Get(Website); > Source = HTTP->Body; > diff = GetTickCount()-start; > > This works fine. Yes but you cannot name that a parse time. Whichever parse time you have in mind. You just messured the time needed for exeuting a HTTP->Get() and assigning the HTTP->Body to Source. > To check if my results are plausible i also display the > parse time on my website. so i found out, that the time my c++ application > determine is always bigger then the parse time, which my website displays. That is ok. As the webserver needs some time too and transmitting data takes time. > so i ask me if there is an better way to get the parse time. You did it already ok with your c++ application. > does anybody have some advise for me? For your 'application' everything is behind HTTP->Get() and thus out of sight. Hans.
Re: open a website and mess the parse time
Author: Steffan Kahn
Date: Mon, 01 Nov 2004 17:49
Date: Mon, 01 Nov 2004 17:49
62 lines
2565 bytes
2565 bytes
Hi,
what is the english name f�r the time i get via get. can i call it loadtime,
because it is the time, the hole website needs to load?
it is possible to get via nmhttp the respons time of a website? my idea is
like:
start = GetTickCount();
HTTP->Get(Website);
void __fastcall TForm1::NMHTTP1HostResolved(TComponent *Sender)
{
diff = GetTickCount()-start;
}
so, may i get the responstime with help of NMHTTP1HostResolved or
NMHTTP1PacketRecvd.
Steffan
"hans galema" <notused@notused.nl> schrieb im Newsbeitrag
news:41862f22$1@newsgroups.borland.com...
> Steffan Kahn wrote:
>
> > in my application i need to open a website and mess the parse time. at
the
> > moment i use following lines:
> >
> > start = GetTickCount();
>
> > HTTP->Get(Website);
> > Source = HTTP->Body;
>
> > diff = GetTickCount()-start;
> >
> > This works fine.
>
> Yes but you cannot name that a parse time. Whichever parse time
> you have in mind. You just messured the time needed for exeuting
> a HTTP->Get() and assigning the HTTP->Body to Source.
>
> > To check if my results are plausible i also display the
> > parse time on my website. so i found out, that the time my c++
application
> > determine is always bigger then the parse time, which my website
displays.
>
> That is ok. As the webserver needs some time too and transmitting
> data takes time.
>
> > so i ask me if there is an better way to get the parse time.
>
> You did it already ok with your c++ application.
>
> > does anybody have some advise for me?
>
> For your 'application' everything is behind HTTP->Get() and
> thus out of sight.
>
> Hans.
Re: open a website and mess the parse time
Author: hans galema
Date: Mon, 01 Nov 2004 19:05
Date: Mon, 01 Nov 2004 19:05
29 lines
2040 bytes
2040 bytes
Steffan Kahn wrote: > what is the english name f�r the time i get via get. can i call it loadtime, > because it is the time, the hole website needs to load? Don't think so. If one speaks of the loadtime of a webpage -not of a website-, then that is with a browser in mind. Even if the browser grabs the page quick than it still needs time to format the page, creating all elements for tables and so. Then if there are img tags all the images have to be requested separately yet. All that adss to the loadtime. Again. The only thing you were measuring was the execution time of HTTP->Get(WebPage); > so, may i get the responstime with help of NMHTTP1HostResolved No because resolving a hostname has nothing to do with contacting the webserver. Instead DNS servers are contacted. The host can be resolved even if the website is not 'in the air'. > or > NMHTTP1PacketRecvd. Probably. Did you already try and measure it ? Please trim quotes when replying. Hans.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads