finish problem 4, add accurate process cpu usage measurement