Cranking the flashlight spins a magnet within a wire coil. The continuous passing of these surfaces causes electrons to be pulled from the magnetic field, creating electricity. The charge is then passed through the wire coil to the battery or capacitor, where it is stored. The amount of power generated varies, but typically about 1 minute of cranking will give about 30 minutes of light.