hi i need a procedure that is once called could continuously calculate the CPU usage of the current machine in use and of a distant machine if possible or even just receiving it. My main objective is to use that numeric value as an entry to another function.
am using a windows based configuration and my main object is to find cpu usage percentage as close as possible to real value and in continous why ( by using "while" for instance ), and so use it this integer value representing the cpu usage as a parameter for other uses
If you're not familiar with COM then this is a bit advanced so, not to shoot down your idea, but would setting something to run at a different priority be a better solution for you? Is this something that perfmon would be better suited to do? I ask as a Sys Admin, we often over complicate problems when simpler solutions exist.