🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #15096

Re: [VC] CPU usage meten

#15096
From: Colin
Date: Sun, 03 Dec 2000 00:00
23 lines
1647 bytes
> Iemand een idee hoe ik de CPU usage van een bepaalde thread kan meten in
> Windows 9x?

Ik weet het niet, maar wellicht help ik je hiermee op weg:

http://www.freevbcode.com/ShowCode.Asp?ID=1652

In dit VB programma worden de volgende api's gebruikt. Je ziet de overall
CPU gebruik:

Private Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA"
(ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long,
ByVal samDesired As Long, ByRef phkResult As Long) As Long
Private Declare Function RegCloseKey Lib "advapi32" (ByVal hKey As Long) As
Long
Private Declare Function RegQueryValueEx Lib "advapi32" Alias
"RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal
lpReserved As Long, ByRef lpType As Long, ByVal lpData As String, ByRef
lpcbData As Long) As Long

Met vriendelijke groet,

Colin.
Technical Details
Message-ID: <90dhfh$mi$1@boile.a2000.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Q3WV5.9311$lR2.394924@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,4057869269b72a24
X-Google-Attributes: gidfcea4,public
X-Google-Thread: 107324,4057869269b72a24
X-Google-Attributes: gid107324,public
From: "Colin" <colin@flash.a2000.nl>
Subject: Re: [VC] CPU usage meten
Date: 2000/12/03
Message-ID: <90dhfh$mi$1@boile.a2000.nl>
X-Deja-AN: 700575085
References: <Q3WV5.9311$lR2.394924@afrodite.telenet-ops.be>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
X-Complaints-To: abuse@a2000.nl
X-Trace: boile.a2000.nl 975849777 722 24.132.9.176 (3 Dec 2000 13:22:57 GMT)
Organization: A2000 Kabeltelevisie en Telecommunicatie
X-MSMail-Priority: Normal
NNTP-Posting-Date: 3 Dec 2000 13:22:57 GMT
Newsgroups: be.comp.programming,nl.comp.programmeren