Not particularly simple and it's been answered many times before on this forum.
The standard way to approach it is to run a ps with options,
pipe the output through grep, filter this for the grep
process and report the OP.
A while loop and sleep fulfill your other requirement.