process.cpuUsage() - implementation, doc, tests
Checklist
-
tests and code linting passes ( make -j4 lint test
) -
a test and/or benchmark is included -
documentation is changed or added -
the commit message follows commit guidelines
current planned commit message
process: add cpuUsage()
The cpuUsage()
function will return user and system CPU usage timings for the
current process.
Drive-by fix to process.hrtime() doc to align with preferred non-usage of "you" in function description.
Affected core subsystem(s)
process
module
Description of change
add the function cpuUsage()
to process