Article View: borland.public.cppbuilder.nativeapi
Article #15450Re: CPU Usage
From: Malcolm Smith
Date: Sat, 28 Jun 2003 10:00
Date: Sat, 28 Jun 2003 10:00
39 lines
2316 bytes
2316 bytes
I've done this before using the Performance Data Helper stuff. I have a working project and PDH wrapper which I've been meaning to make available as cheap shareware but just haven't got around to publishing it due to other priorities. At the moment it is a TObject based class but I could easily convert it to a component if there is interest. Contact me off the list if you want additional information. -- Malcolm Smith MJ Freelancing- http://www.mjfreelancing.com Software Protection for C++Builder Borland Technology Partner "Scott Ingram" <scott.ingram@DELTETECAPSnitrex.com> wrote in message news:3efc643b$1@newsgroups.borland.com... > Hi all, > > How do I track CPU usage from within an application. I need to adjust the > number of times I update the screen per second based on CPU usage. This can > vary considerably depending on the graphics card installed. > > Is there a component or class I can access for this info? Preferably, I'd > receive the information in the form of percentage... like the way it is > described in task manager. > > Oh yes, I'm running Win 2k with Borland Builder 6.0. > > Thanks, > > Scott Ingram > > >
Technical Details
Message-ID:
<3efd6616@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3efc643b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,eff4f62d80779038 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-28 03:10:56 PST Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au> From: "Malcolm Smith" <mjfreelancing@optusnet.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <3efc643b$1@newsgroups.borland.com> Subject: Re: CPU Usage Date: Sat, 28 Jun 2003 20:00:39 +1000 Lines: 41 Organization: MJ Freelancing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 211.28.166.113 Message-ID: <3efd6616@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1056794134 211.28.166.113 (28 Jun 2003 02:55:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail