Duration of transient processes in the formation of internal-wave beams