The time crept by so slowly and painfully that the 23-year-old Columbia University journalism student had decided it was time to end her life.

Over many torturous hours, she had been repeatedly raped, sodomized and forced to perform oral sex, a prosecutor told a jury on Thursday. The accused, Robert A. Williams, 31, had doused the woman’s face and body with boiling water and bleach, forced her to swallow handfuls of pills and to chase them with beer, sealed her mouth with glue, and bound her wrists and legs with shoelaces, cords and duct tape, said the prosecutor, Ann P. Prunty. And now, Ms. Prunty said, he was asking the woman to gouge out her own eyes with a pair of scissors.

And so the woman, sitting on the floor of her studio apartment in Hamilton Heights and holding a pair of scissors between her knees  the blade pointing toward her face  tried to stop the suffering. She lowered her face to the blade, but turned her head at the last moment, trying to stab herself in the neck instead of her eyes.

The scissors slipped from her grasp, the suicide attempt failed, and the woman suffered several more hours of torture, Ms. Prunty said.