def _cpu_tot_time(times):
 tot = sum(times)
 if LINUX:
  tot -= getattr(times, 'guest', 0)
  tot -= getattr(times, 'guest_nice', 0)
 return tot

def _cpu_tot_time ( times ) : tot = sum ( times ) if LINUX : tot -= getattr ( times , 'guest' , 0 ) tot -= getattr ( times , 'guest_nice' , 0 ) return tot
given a cpu_time() ntuple calculates the total cpu time .