Add functions to get current time.