Refactor code to display execution times.