How do I make the comparator work and then stop?

//ads -- adsterra.com -- native banner
?>
I made a redstone clock that involves a command block with /testfor and a comparator attached to it. Whenever the /testfor works, the comparator turns on, but completely.(meaning it does not turn off after that) I want it to turn on, have a small delay, then turn off. is there some way that i should change this clock, or should I be doing something different with the comparator?
Pictures about "How do I make the comparator work and then stop?"



How do I turn comparator off?
-Unlike repeaters, comparators do not have an adjustable delay setting of 2-8 gameticks, they will always produce 2 gameticks of delay.How to Use the Redstone Comparator in Minecraft!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Monstera, Andrea Piacquadio, Teona Swift