🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #172

Re: Problem measuring code execution time !

#172
From: JohnH4
Date: Sun, 01 Jun 2008 13:22
7 lines
1485 bytes
> I am trying to time how long it takes for a procedure called "Recalculate"
> to execute. So I created a button on a form and hooked up this OnClick
> method:

Kevin,
Why don't you use the TSC (the CPU's cycle counter) to time you code?
Regards, JohnH
Technical Details
Message-ID: <b6eeecdd-f562-4fe5-bc98-ed3c920ef603@k30g2000hse.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!k30g2000hse.googlegroups.com!not-for-mail
References: <00069e34$0$2953$c3e8da3@news.astraweb.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 109d30,2005f31a97823e8a
X-Google-Attributes: gid109d30,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!k30g2000hse.googlegroups.com!not-for-mail
From: JohnH4 <herb-sci1@sbcglobal.net>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Re: Problem measuring code execution time !
Date: Sun, 1 Jun 2008 06:22:40 -0700 (PDT)
Organization: http://groups.google.com
Lines: 7
Message-ID: <b6eeecdd-f562-4fe5-bc98-ed3c920ef603@k30g2000hse.googlegroups.com>
References: <00069e34$0$2953$c3e8da3@news.astraweb.com>
NNTP-Posting-Host: 70.241.140.202
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1212326561 2701 127.0.0.1 (1 Jun 2008 13:22:41 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 1 Jun 2008 13:22:41 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k30g2000hse.googlegroups.com; posting-host=70.241.140.202; 
 posting-account=jXiFMgkAAAB6VrgMNG9YUkTgy-WQObPn
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
 2.0.50727),gzip(gfe),gzip(gfe)