Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-22-2003, 01:46 AM   #1
Registered: Oct 2002
Location: Ohio, USA
Distribution: OS X 10.4.8, Ubuntu 6.10
Posts: 146

Rep: Reputation: 15
Question 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?
Old 09-22-2003, 02:46 AM   #2
Registered: Aug 2003
Location: .bh
Distribution: Gentoo
Posts: 188

Rep: Reputation: 30
you can use the "time" command:

time <your app here>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing a process after x amount of time... virid Linux - Newbie 3 03-17-2006 06:13 AM
Incorrect process start time hulala Fedora 2 04-26-2005 09:36 PM
Booting process takes long time. benoy4007 Red Hat 8 06-13-2004 11:35 AM
how get a process run time henryluo Linux - Newbie 9 06-10-2004 10:45 PM
killing process at time limit hfawzy Linux - General 0 05-31-2003 03:46 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration