Study of the nonlinear formation stage duration of an ultrashort pulse in a solid-state laser