Sentence:  It seemed to him that a long time had passed before he decided what to <WSD>do</WSD> . 
Meaning of the word marked with <WSD> tags:  engage in