Added function to output the current time