From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,212d0edbd5d28969 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-29 20:56:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Cpu usage in ada? Date: 29 Oct 2002 20:56:52 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0210292056.6f5f99c1@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1035953812 16718 127.0.0.1 (30 Oct 2002 04:56:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 30 Oct 2002 04:56:52 GMT Xref: archiver1.google.com comp.lang.ada:30215 Date: 2002-10-30T04:56:52+00:00 List-Id: "Sim Con" wrote in message news:... > Hello! I need to build a cpu usage meter in ada95 for a windows system. About 99% of this task is going to be OperatingSystem specific. "Windows" is not good enough, as the different versions and flavors of Windows have completely different ways of giving you this information. To recap, the problems here are: o You didn't specify which version(s) of Windows you need to use. o This isn't really a Windows newsgroup. For example, if you can confine your app to the NT family (including 2K and XP), then you probably want to poll the registry's "performance information". There's a rough Ada binding for that in the SETI@Home Service which you might be able to use, if you want to go that route. But I don't know offhand exactly which keys you need to hit. MSDN is the place to look (at least that's where I went to figure it out).