update time interval of program