Click here to Skip to main content
15,911,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Project Pin
Wackatronic11-Jun-04 4:27
Wackatronic11-Jun-04 4:27 
GeneralRe: C# Project Pin
Anonymous11-Jun-04 7:07
Anonymous11-Jun-04 7:07 
GeneralRe: C# Project Pin
Wackatronic11-Jun-04 7:21
Wackatronic11-Jun-04 7:21 
GeneralDesigner question Pin
Alex Korchemniy9-Jun-04 15:29
Alex Korchemniy9-Jun-04 15:29 
GeneralFollow up Pin
Alex Korchemniy9-Jun-04 15:46
Alex Korchemniy9-Jun-04 15:46 
GeneralRe: Designer question Pin
Heath Stewart10-Jun-04 3:32
protectorHeath Stewart10-Jun-04 3:32 
GeneralCPU usage in % Pin
Member 10432449-Jun-04 15:05
Member 10432449-Jun-04 15:05 
GeneralRe: CPU usage in % Pin
eggie59-Jun-04 18:54
eggie59-Jun-04 18:54 
thats a method and it should get the total cpu usage as described...

% Processor Time is the percentage of elapsed time that the processor
 spends to execute a non-Idle thread. It is calculated by measuring the 
duration of the idle thread is active in the sample interval, and 
subtracting that time from interval duration.  (Each processor has an idle 
thread that consumes cycles when no other threads are ready to run). This 
counter is the primary indicator of processor activity, and displays the 
average percentage of busy time observed during the sample interval. It is 
calculated by monitoring the time that the service is inactive, and 
subtracting that value from 100%.



If you are comparing this to the task manager, it is pretty close....

I find that using the preformance counters I get close results, but often sporatic ones... probably cause i'm not using them right.

Check this class out, you will like it better...

CpuUsage[^]

/\ |_ E X E GG
QuestionCollection as a Trace/Debug Listener? Pin
llyal20009-Jun-04 13:52
llyal20009-Jun-04 13:52 
AnswerRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 3:23
protectorHeath Stewart10-Jun-04 3:23 
AnswerRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 3:24
protectorHeath Stewart10-Jun-04 3:24 
GeneralRe: Collection as a Trace/Debug Listener? Pin
llyal200010-Jun-04 7:49
llyal200010-Jun-04 7:49 
GeneralRe: Collection as a Trace/Debug Listener? Pin
Heath Stewart10-Jun-04 9:49
protectorHeath Stewart10-Jun-04 9:49 
Generalwatching process and the data they access Pin
tjawed9-Jun-04 13:43
tjawed9-Jun-04 13:43 
GeneralRe: watching process and the data they access Pin
Dave Kreskowiak9-Jun-04 15:42
mveDave Kreskowiak9-Jun-04 15:42 
GeneralRe: watching process and the data they access Pin
tjawed9-Jun-04 18:31
tjawed9-Jun-04 18:31 
GeneralSaving image as JPEG - best possible quality Pin
michalJ9-Jun-04 11:44
michalJ9-Jun-04 11:44 
GeneralRe: Saving image as JPEG - best possible quality Pin
Dave Kreskowiak9-Jun-04 12:07
mveDave Kreskowiak9-Jun-04 12:07 
GeneralRe: Saving image as JPEG - best possible quality Pin
michalJ9-Jun-04 12:13
michalJ9-Jun-04 12:13 
GeneralRe: Saving image as JPEG - best possible quality Pin
Heath Stewart10-Jun-04 3:18
protectorHeath Stewart10-Jun-04 3:18 
GeneralRe: Saving image as JPEG - best possible quality Pin
michalJ11-Jun-04 2:45
michalJ11-Jun-04 2:45 
Generalsockets Pin
surgeproof9-Jun-04 10:30
surgeproof9-Jun-04 10:30 
GeneralRe: sockets Pin
Heath Stewart9-Jun-04 10:48
protectorHeath Stewart9-Jun-04 10:48 
GeneralRe: sockets Pin
GISnet9-Jun-04 10:51
GISnet9-Jun-04 10:51 
GeneralRe: sockets Pin
eggie59-Jun-04 19:05
eggie59-Jun-04 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.