Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-12-2005, 01:18 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: Boston, MA, USA
Distribution: Fedora Core 3
Posts: 5
Rep:
|
CPU consumed time with millisecond resolution.
How I can get CPU consumed time by a particular process with at least millisecond resolution? I need this time while process still running on regular basis. PS gives only a second resolution.
|
|
|
12-12-2005, 04:44 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,381
|
/proc/<pid>/stat will get you the jiffy count.
Might be the best you can do.
|
|
|
12-13-2005, 09:29 AM
|
#3
|
LQ Newbie
Registered: Nov 2005
Location: Boston, MA, USA
Distribution: Fedora Core 3
Posts: 5
Original Poster
Rep:
|
Thank you for replay. According to the information in
wwwdotalphalinuxdotorg/archives/axp-list/January2001/0340.shtml
I am interesting in parameters 16 and 17 of the file. It seems that those values have only 1 second resolution as ps result. Is it true?
|
|
|
12-13-2005, 09:44 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,381
|
Would appear so - you might have to process the data in /proc yourself.
|
|
|
12-20-2005, 12:08 PM
|
#5
|
LQ Newbie
Registered: Nov 2005
Location: Boston, MA, USA
Distribution: Fedora Core 3
Posts: 5
Original Poster
Rep:
|
It looks like top gives the time with 0.01 resolution.
|
|
|
All times are GMT -5. The time now is 02:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|