Add method to get time value.