Factored out time counting function.

Change print_time to included hours in parentheses.
Changed print function to show total counted time.
factored out display code.
pep8