It is necessary to obtain data from a stream of a third-party program, for this it is necessary to switch to idle mode.
QUESTION:
How to make a screen delay for a long time (about 10 minutes)?
I am familiar with the sleep() function, but can there be a better solution for a long screen delay? By delay, I mean the state when the program is idle.