LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Time of a process? (https://www.linuxquestions.org/questions/programming-9/time-of-a-process-95384/)

AquamaN 09-22-2003 01:46 AM

Time of a process?
 
Hello, I was wondering how I could get the time that a process starts (like when my program forks) and how to get the time when it stops. Any ideas?? Also, how would I be able to get the amout of cpu time used in the process?

jalal 09-22-2003 02:46 AM

you can use the "time" command:

time <your app here>


All times are GMT -5. The time now is 11:39 AM.