Function for printing elapsed time was implemented.