modified get_rate script to include cpu usage measurement of a single process.