MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / cpu_percent

Method cpu_percent

embedded/site-packages/psutil/__init__.py:994–1085  ·  view source on GitHub ↗

Return a float representing the current process CPU utilization as a percentage. When *interval* is 0.0 or None (default) compares process times to system CPU times elapsed since last call, returning immediately (non-blocking). That means that the first time

(self, interval=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_cpu_percentMethod · 0.95

Calls 3

cpu_countFunction · 0.85
cpu_timesMethod · 0.45
sleepMethod · 0.45

Tested by 1

test_cpu_percentMethod · 0.76