add the way of function by time