是秒吗?我试图将它与top -n 1 | grep Cpu
命令的输出相匹配,它们看起来不同!
>>> psutil.cpu_times()
scputimes(user=678.99, nice=2.15, system=405.34, idle=414554.14, iowait=12.95, irq=0.0, softirq=2.43, steal=95.2, guest=0.0, guest_nice=0.0)
>>> exit()
[root@Server]# top -n 1 | grep Cpu
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st