Antacids work quickly, by neutralizing the acid in your stomach, but last for only 1-3 hours after use. PPIs (proton pump inhibitors), like Nexium 24HR, treat frequent heartburn by blocking the production of stomach acid. PPIs may take 1-4 days for full effect, but relief lasts for 24 hours.