Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to make my Mac not sleeping?
Answer:
Just inform the Mac OS about some system activity with code like this:
You may use another constant if you prefer some different behavior.
Call it maybe every second.