The pH meter test usually lasts for 24 hours or longer, depending on the doctor's recommendation and the specific needs of the patient.