Trigger based on CPU usage
I often leave work at night with a calculation job running. I can now set the machine to not sleep for X hours which is great, but I don't always know how long the job will take. I would be good to say "Don't sleep until CPU usage drops below 25%" for example. The CPU usage would need to be averaged over 1 or even ten minutes to take into accounts the job doing some IO or something low CPU for a bit.
I’m not sure this is something I can query for within a sandboxed app, but I’ll look into it. Thanks for the suggestion.