Update time length