add method to display time.