🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #636

Re: on using RDTSC

#636
From: Owen Green
Date: Wed, 19 Mar 2003 17:15
19 lines
1697 bytes
In article <3e760519$1@newsgroups.borland.com>, bill_meyer@earthlink.net 
says...
> Does anyone here make use of RDTSC for timing? If so, did you use JNI
> to gain access to it, or is there a downloadable tool for the purpose?

I haven't, and I don't know of any tools, but here's an article which 
features some JNI that makes a call to RDTSC: 

http://www.codeproject.com/cpp/IntegratingCPPJava.asp

It's worth bearing in mind that JNI itself will add some overhead, which 
may be worth taking into account, and also that you'd probably have to 
make sure you're running on an appropriate processor :) 

Also, if it's of any use, there are some Delphi conversions of the JNI 
headers at JEDI, if that's preferable to C++. 

--
Owen 
Technical Details
Message-ID: <MPG.18e2b628c374b17989692@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!caladan.arrakis.es!newsgroups.borland.com!not-for-mail
References: <3e760519$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f083ccae9a11c808
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-03-19 09:32:01 PST
From: Owen Green <o.t.green@begonefoulmachine.ntlworld.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: on using RDTSC
Date: Wed, 19 Mar 2003 17:15:56 -0000
Message-ID: <MPG.18e2b628c374b17989692@newsgroups.borland.com>
References: <3e760519$1@newsgroups.borland.com>
Organization: The Lean Green Machine
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 62.253.133.169
X-Trace: newsgroups.borland.com 1048094277 62.253.133.169 (19 Mar 2003 09:17:57 -0800)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!caladan.arrakis.es!newsgroups.borland.com!not-for-mail