Using the cpuinfo function you can get percentage of processor load.