Is it possible to check CPU usage of simple script ?
For example: How to get the CPU usage in % of printing 100 times \"hello world!\" ?
Currently I\'m getti
You'll need the psutil module.
import psutil print(psutil.cpu_percent())