TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
guaitaku boluda
NA
1
0
get cpu usage
Feb 25 2007 10:32 AM
I'm trying to get the cpu usage, but I allways get a 0%. Also I tried to get avaliable ram, and it works, but not the cpu usage. code: PerformanceCounter cpuCounter; PerformanceCounter ramCounter; cpuCounter = new PerformanceCounter(); cpuCounter.CategoryName = "Processor"; cpuCounter.CounterName = "% Processor Time"; cpuCounter.InstanceName = "_Total"; ramCounter = new PerformanceCounter("Memory", "Available MBytes"); MessageBox.Show(cpuCounter.NextValue() + "%"); MessageBox.Show(ramCounter.NextValue() + "Mb"); What's wrong? or it's another way to get it? Thanks
Reply
Answers (
0
)
How to write full program for y=x^2 using genetic algorithm in C#?
c# Poll