Article View: borland.public.cppbuilder.nativeapi
Article #4572Re: Very Slow communication Init on Windows-98, why?
From: Remy Lebeau (TeamB)
Date: Wed, 11 Jan 2006 19:21
Date: Wed, 11 Jan 2006 19:21
42 lines
2483 bytes
2483 bytes
"Ram" <Ram@NoSpam.com> wrote in message
news:43c52fc8$1@newsgroups.borland.com...
> I can't, becouse there is not Builder C++ Compiler installed
> on that Win-98 computer, i can only run the Exe file on it....
Then you will have to put debugging statements directly into your code that
record how long it takes to perform your operations. Use the GetTickCount()
function, ie:
inline DWORD GetElapsed(DWORD Start, DWORD End)
{
return (dwEnd >= dwStart) ? (dwEnd - dwStart) : ((0xFFFFFFFF -
dwStart) + dwEnd);
}
{
DWORD dwStart = ::GetTickCount();.
// do something ...
DWORD dwElapsed = GetElapsed(dwStart, ::GetTickCount());.
// report what the operation was and the elapsed time to perform it
//...
dwStart = ::GetTickCount();.
// do something else ...
dwElapsed = GetElapsed(dwStart, ::GetTickCount());.
// report what the operation was and the elapsed time to perform it
// and so on ...
}
Once you have the elapsed time for your operations, you can report them
somewhere, such as to a text file that the user can then email back to you.
Alternatively, if you use OutputDebugString(), then the user can use
third-party trace tools, such as DebugView from http://www.sysinternals.com,
to view the code's activity in real-time, and then save the detailed log and
send it to you.
Gambit
Technical Details
Message-ID:
<43c55a12$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43c24b5a$1@newsgroups.borland.com> <43c4e02c$3@newsgroups.borland.com> <43c52fc8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,35fcdf173fbb2ee3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43c24b5a$1@newsgroups.borland.com> <43c4e02c$3@newsgroups.borland.com> <43c52fc8$1@newsgroups.borland.com> Subject: Re: Very Slow communication Init on Windows-98, why? Date: Wed, 11 Jan 2006 11:21:11 -0800 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43c55a12$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137007122 68.69.17.41 (11 Jan 2006 11:18:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail