🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12182

Re: QueryPerformanceFrequency

#12182
From: William Meyer
Date: Fri, 22 Nov 2002 22:39
20 lines
1616 bytes
David J Taylor wrote:

> > For performance measures, though, RDTSC is the better thing to use.
> 
> Why?

Resolution. RDTSC is sampling a CPU register that is incremented at CPU 
clock rate. In one second, on my 1.33GHz Athlon, the value increments 
by roughly 1,330,000,000.

If you're timing a small piece of code that will execute many times, 
then finer resolution is appropriate.

-- 
Bill
A society of sheep must in time beget a government of wolves.
- Bertrand de Juvenal
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html>      netiquette
Posted with XanaNews Version 1.12.3.2
Technical Details
Message-ID: <3ddeb237$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3dddc45c@newsgroups.borland.com> <ha0stuk5f8isgsi777lr94gsumngrtpo3d@4ax.com> <3dde611f@newsgroups.borland.com> <3ddeb081$1@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 15:18:07 PST
From: "William Meyer" <bill_meyer@earthlink.net>
Subject: Re: QueryPerformanceFrequency
Newsgroups: borland.public.delphi.nativeapi
References: <3dddc45c@newsgroups.borland.com> <ha0stuk5f8isgsi777lr94gsumngrtpo3d@4ax.com> <3dde611f@newsgroups.borland.com> <3ddeb081$1@newsgroups.borland.com>
Organization: Meyer
User-Agent: XanaNews/1.12.3.2
NNTP-Posting-Host: 209.245.129.243
Message-ID: <3ddeb237$1@newsgroups.borland.com>
Date: 22 Nov 2002 14:39:51 -0800
X-Trace: newsgroups.borland.com 1038004791 209.245.129.243 (22 Nov 2002 14:39:51 -0800)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail