Article View: borland.public.delphi.nativeapi
Article #12150Re: QueryPerformanceFrequency
From: John Herbster TeamB
Date: Fri, 22 Nov 2002 16:07
Date: Fri, 22 Nov 2002 16:07
13 lines
1431 bytes
1431 bytes
"judy" <benny@chrysanth.com> wrote
> Anyone use the QueryPerformanceCounter( ) ...
I prefer to use the CPU clock count for most timing uses.
It counts the CPU clock cycles (1 GHz or whatever) and
never <g> rolls over. Regards, JohnH
function GetCpuClockCycleCount: Int64;
{ Reads 64-bit TSC counter running at
CPU clock speed. From Torjei Kvinen }
asm
dw $310F // opcode for RDTSC
end;
Technical Details
Message-ID:
<3dde56cf$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!208.184.7.66.MISMATCH!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3dddc45c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,64862bd85e1470d9 X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-22 08:15:52 PST From: "John Herbster \(TeamB\)" <herb-sci at novus-tele.net> Newsgroups: borland.public.delphi.nativeapi References: <3dddc45c@newsgroups.borland.com> Subject: Re: QueryPerformanceFrequency Date: Fri, 22 Nov 2002 08:07:57 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 64.69.92.32 Message-ID: <3dde56cf$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1037981391 64.69.92.32 (22 Nov 2002 08:09:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!208.184.7.66.MISMATCH!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail