示例#1
0
文件: _psbsd.py 项目: 2089764/psutil
 def cpu_times(self):
     user, system = cext.proc_cpu_times(self.pid)
     return _common.pcputimes(user, system)
示例#2
0
 def cpu_times(self):
     user, system = cext.proc_cpu_times(self.pid)
     return _common.pcputimes(user, system)
示例#3
0
文件: _psbsd.py 项目: ztop/psutil
 def cpu_times(self):
     """return a tuple containing process user/kernel time."""
     user, system = cext.proc_cpu_times(self.pid)
     return _common.pcputimes(user, system)