def format_time(start, end):
try:<EOL><INDENT>cpu_usr = end[<NUM_LIT:0>] - start[<NUM_LIT:0>]<EOL>cpu_sys = end[<NUM_LIT:1>] - start[<NUM_LIT:1>]<EOL><DEDENT>except TypeError:<EOL><INDENT>return '<STR_LIT>'.format(human_time(cpu_usr))<EOL><DEDENT>else:<EOL><INDENT>times = (human_time(x) for x in (cpu_usr, cpu_sys, cpu_usr + cpu_sys))<EOL>return '<STR_LIT>'.format(*times)<EOL><DEDENT>
Returns string with relevant time information formatted properly