ps -r -e -o pcpu=,comm=, the % CPU displayed per process, over how long time is this value measured? Is it one second? The manual page does not seem to mention this.
And a follow-up question: Is it possible to have
ps (or another standard UNIX utility) report the CPU percentage per process over a longer period of time, like 5 seconds? (Obviously, one could just gather up 5 values and calculate the average, but I'm not sure if that would even be correct
PS! If it matters, I'm on macOS (which runs a BSD variant).