How to use "restrained" in a sentence

Sentences

She gritted her teeth, however, and restrained the urge to leave the room with the job uncompleted.