'Handle a single line output from the cpu time command.'

def lineReceived(self, line):

    if (WALLCLOCK_LABEL not in self.result):
        self.result[WALLCLOCK_LABEL] = self._reactor.seconds()
    if (not line.strip()):
        return
    try:
        words = line.split()
        name = words[0]
        formatted_cputime = words[(-1)]
        parts = formatted_cputime.split('-', 1)
        (h, m, s) = [int(t) for t in parts.pop().split(':')]
        days = (int(parts[0]) if parts else 0)
        cputime = ((((((days * 24) + h) * 60) + m) * 60) + s)
    except ValueError as e:
        e.args = (e.args + (line,))
        raise e
    self.result[name] = (self.result.get(name, 0) + cputime)
