Optionalseconds: number
How long to measure for, in seconds, up to an hour (3600). Defaults to 1.
A Promise that resolves with one entry per core, in the order macOS numbers them, or rejects with an EINVALIDARG error if seconds isn't a positive number no larger than 3600
Measures how busy each CPU core is over an interval. See
cpuUsage()for how the measurement works.