Most colonoscopies and outpatient anorectal operations are done in less than 30 minutes. For outpatient procedures, you arrive about 30 minutes before your procedure and your discharged about 30 minutes after a colonoscopy and 45 minutes after an anorectal operation. Inpatient abdominal operations typically last 1.5-3 hours.