How to use "hesitating" in a sentence

Sentences

Marius stared, frozen with fear as Thenardier, knife in hand, stood hesitating a few steps away from the prisoner

Without hesitating, I pushed the switch