During the procedure, a long, flexible tube called a colonoscope is inserted into the rectum. The colonoscope is equipped with a light and a camera, allowing the doctor to view the entire colon. The procedure typically takes about 30 to 60 minutes and is usually performed under sedation.