Code now calculates and displays the time it takes to run