T
TyBreaker
I am using a performance counter to record the "Elapsed (CPU) time" of
the "Idle" process. I record the elapsed time, wait 1 second and then
record the new elapsed time. The result I get is:
before: 175437046.875
after: 175438093.75
CPU time used: 1046.875
However I was running Prime95 at the same time and I obtained the
following stats during the same interval (used managed .NET call
Process.TotalProcessorTime.TotalMilliseconds):
before: 295905.4912
after: 296896.9168
CPU time used: 991.4256
Now my understanding of the System Idle Process is that it counts the
spare CPU time only. However for a 1 second interval both the Idle and
Prime95 processes appear to have clocked up nearly 1 second each! I
must be missing something here because this should be impossible,
correct? Just to clarify, I have a single CPU which only displays a
single CPU graph in Task Manager (hence isn't hyper-threaded or dual core).
Grateful for any guidance, thanks!
--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/
There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.
There's no place like 127.0.0.1.
ASCII a silly question, get a silly ANSI.
the "Idle" process. I record the elapsed time, wait 1 second and then
record the new elapsed time. The result I get is:
before: 175437046.875
after: 175438093.75
CPU time used: 1046.875
However I was running Prime95 at the same time and I obtained the
following stats during the same interval (used managed .NET call
Process.TotalProcessorTime.TotalMilliseconds):
before: 295905.4912
after: 296896.9168
CPU time used: 991.4256
Now my understanding of the System Idle Process is that it counts the
spare CPU time only. However for a 1 second interval both the Idle and
Prime95 processes appear to have clocked up nearly 1 second each! I
must be missing something here because this should be impossible,
correct? Just to clarify, I have a single CPU which only displays a
single CPU graph in Task Manager (hence isn't hyper-threaded or dual core).
Grateful for any guidance, thanks!
--
______ ___ __
/_ __/_ __/ _ )_______ ___ _/ /_____ ____
/ / / // / _ / __/ -_) _ `/ '_/ -_) __/
/_/ \_, /____/_/ \__/\_,_/_/\_\\__/_/
/___/
There are 10 types of people in this world; those who understand the
binary numbering system and those who don't.
There's no place like 127.0.0.1.
ASCII a silly question, get a silly ANSI.