How do I keep the phone screen from turning off?

Hello, I am writing a program that needs to display a stopwatch without turning off the screen. What code block or extension should I use to implement this function?

Also:

How to Keep The Screen On with a Clock and Notifier

1 Like