Frame dependant timer

Is there a way that I can make a timer that lasts for 1 frame? All of the timers that I can find are time based, as opposed to frame based.

A timer that last for only 1 frame? Why would you want to do that?
A timer cannot last for only 1 frame since that timer will have no time. It makes no sense.

If you want to check if something is happening in 1 frame use a bool instead.