Transition from ferromagnetism to superparamagnetism on the nanosecond time scale