simple calculation of cpu usage