🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5128

GetSystemTimes and Borland C++ Builder

#5128
From: Lapo Guidi
Date: Wed, 12 Oct 2005 00:51
15 lines
1492 bytes
A great HI to all!
I have a problem calculating the CPU usage.
I readed the MSDN and I see that i need to use GetSystemTimes API to get 
Idle time, Kernel time and User time to calculate it.
My problem is that this function is quite new so my BCB 6 haven't it in 
winbase.h and, I suppose, in Kernel32.lib.

Somebody can help me to solve the problem?
Should I download the Platform SDK from Microsoft site?

Thanks for the answer.

Bye

Lapo 
Technical Details
Message-ID: <434c5d74@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!83.128.0.12.MISMATCH!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!chloor.box.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,decdfd9a1b916fa8,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Lapo Guidi" <lapoguidi@inwind.it>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: GetSystemTimes and Borland C++ Builder
Date: Wed, 12 Oct 2005 02:51:34 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 87.3.120.144
Message-ID: <434c5d74@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129078132 87.3.120.144 (11 Oct 2005 17:48:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!83.128.0.12.MISMATCH!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!chloor.box.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail