refactored display of time taken