Measure cpu usage

Is there a function in Juce to give me the cpu usage (percentage) ?

What exactly you mean by cpu percentage…?

how much of the cpu is being used. Kind of like the performance display in the activity monitor on osx, or the performance tab in the task manager on windows.
I found a getCpuUsage function in the AudioDeviceManager, which is audio process specific, but I was wondering if there’s also like a global cpu usage function.

Sorry, I’ve never delved into the OS monitoring APIs.

Is the getCpuUsage a different meaning than what the task manager gives. Can I approximate using this value?