How to make a screen timer

This might be useful to you

Or this one