I am attempting to implement the functionality of starting and stopping monitoring a given process by periodically displaying its CPU and Memory usage.

Through this line of code, I can obtain the...