process time

Hi ,

I want to find the total time taken by the system for doing a particular process. Can u help me!!!!!

thanx-
bye

If it's something you are running manually, or from a script, you can simply use the time command! For example:

time sleep 2

real 0m2.009s
user 0m0.000s
sys 0m0.000s

So, in actuality, It took a total of 2.009 seconds of my time to watch this command complete. But, as you can see, it used virtually no processing time.