cpuload#
- cpuload(interval=0.1)[source]#
Takes a snapshot of current CPU usage via
psutil
- Parameters:
interval (float) – number of seconds over which to estimate CPU load
- Returns:
a float between 0-1 representing the fraction of
psutil.cpu_percent()
currently used.