Permanent pacemakers are used to treat chronic heart rhythm disorders. Whereas a temporary pacemaker is used when the person is hospitalized and the device is used for a duration of time.