emathew
13 years agoNew Contributor
CPUUsage Property specific to 64-bit/32-bit?
Hi,
I have a doubt regarding the CPUUsage property. I am using it for calculating the CPU Usage of a process, ie, Sys.Process(...).CPUUsage;
I see that the value crosses 100%, eg. 106%,135%,etc. Could this be due to a 64-bit operating system and if so is there a necessity to divide it by 2?
This doubt came up as I see that the elapsetime obtained using stopwatch function also returns exactly double the time due to which we are dividing it by two:
var StopWatchObj = HISUtils.StopWatch;
StopWatchObj.Start();
StopWatchObj.Stop();
.....
....
....
var elapsetime = StopWatchObj.Split();
Please guide me if I am wrong.
Hope to see a response soon.
Thanks,
Eyme