update duration of terminal