Article View: borland.public.cppbuilder.nativeapi
Article #4404CPU load - How can I measure it?
From: Alberto
Date: Sat, 04 Feb 2006 23:16
Date: Sat, 04 Feb 2006 23:16
11 lines
1253 bytes
1253 bytes
I would like, using some Windows API, to measure constantly how much CPU load my program is imposing on the processor, with the goal of reducing some functionalities if the load is approaching 100%, all in a manner transparent to the user. Is that possible? Which APIs could I use? Or maybe some good guys has alreadt written a VCL component for that? Using here BCB6. Thanks Alberto di Bene
Technical Details
Message-ID:
<43e53514@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nx01.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e1eea742f875d72d,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 05 Feb 2006 00:16:54 +0100 From: Alberto <dibene@usa.net> User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: CPU load - How can I measure it? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 151.46.157.214 Message-ID: <43e53514@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1139094804 151.46.157.214 (4 Feb 2006 15:13:24 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nx01.iad01.newshosting.com!newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail