Retrieves time and displays it in a message box