def cpu_times(percpu=False):
if not percpu:<EOL><INDENT>return _psplatform.get_system_cpu_times()<EOL><DEDENT>else:<EOL><INDENT>return _psplatform.get_system_per_cpu_times()<EOL><DEDENT>
Return system-wide CPU times as a namedtuple object.
    Every CPU time represents the time CPU has spent in the given mode.
    The attributes availability varies depending on the platform.
    Here follows a list of all available attributes:
     - user
     - system
     - idle
     - nice (UNIX)
     - iowait (Linux)
     - irq (Linux, FreeBSD)
     - softirq (Linux)

    When percpu is True return a list of nameduples for each CPU.
    First element of the list refers to first CPU, second element
    to second CPU and so on.
    The order of the list is consistent across calls.