python windows cpu usage code example
Example 1: get cpu usage from url in pyrhon
import psutil
Example 2: how to measure how much your of cpu your program is using in python
$ pip install line_profiler
import psutil
$ pip install line_profiler