def cpu_times(self): user, system = cext.proc_cpu_times(self.pid) return _common.pcputimes(user, system)
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)