This seven minute video from the PBS Newshour explains the process involved in making the decision to launch nuclear weapons.
According to Peter Feaver, author of Guarding the Guardians: Civilian Control of Nuclear Weapons in the United States, the nuclear launch system is designed to operate very quickly in event of an emergency, but it's unlikely any President could launch weapons on a whim.