Output formatting and total time