CPU utilization between 2 processes at an instant

I have a scenario where 2 applications(sever,deploy) are running in parallel....Now in a span of 1hr i want to know exact %CPU(user CPU) these are using.

For example:
for a snap shot of 1 hr say 10 am to 11 am i need the CPU utilization as below
Total CPU=100 -->User CPU=40%-------------server 30%(30% of 40%)
|_ _ _ _ _ _ deploy 60%(60 % of 40%)

Can anyone help me on this?

First off, what OS are you on?