Why the result of Top is not consistent with Psutil

229

Dear all,

I have written a script and measure the CPU utlization of the script using psutil inside it. When I compare the result with Top, there was a big differece even thought I used -d to minimize the delay? Why ?

Thank you!

Best,

Tom