clamp the delta time