Article View: borland.public.cppbuilder.internet.web
Article #1442time measuring with indy http
From: Jens Harms
Date: Sat, 04 Dec 2004 16:38
Date: Sat, 04 Dec 2004 16:38
36 lines
1755 bytes
1755 bytes
hi all,
during loading a web site with tidhttp i like to get the execution time (the
time which is needed to load the whole document) and the response time (time
when the first byte arrived).
diff should get the execution time
and
responsediff should get the response time.
i use this code here
DWORD start,diff,responsediff;
getfirstbyte = false;
start = ::GetTickCount();
HTTP->Get(Url);
diff = ::GetTickCount()-start;
void __fastcall TMyThread::HTTPWorkBegin(TObject *Sender,
TWorkMode AWorkMode, const int AWorkCountMax)
{
if (getfirstbyte == false)
{
responsediff = ::GetTickCount()-start;
getfirstbyte = true;
}
}
My problem is that diff and responsediff always get the sam value. why is
that? i think time of responsediff should be much smaller than the time auf
diff.
Does anybody have any idea why my code works not correctly?
Jens
Technical Details
Message-ID:
<41b1e7f1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,7dd741a858e8066c,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jens Harms" <jens@harms.ch> Newsgroups: borland.public.cppbuilder.internet.web Subject: time measuring with indy http Date: Sat, 4 Dec 2004 17:38:02 +0100 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 217.88.157.124 Message-ID: <41b1e7f1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102178289 217.88.157.124 (4 Dec 2004 08:38:09 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail