config time function