LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-19-2004, 08:50 PM   #1
vtluu
LQ Newbie
 
Registered: Mar 2004
Location: Vietnam
Posts: 9

Rep: Reputation: 0
How to get timing information for a thread


On Linux, how can I retrieve timing information for a thread (creation time, exit time, kernel time, user time). I have checked the proc file system and pthread library functions but I found nothing.

Any help will be highly appreciated.

Luu Vo.
 
Old 04-19-2004, 09:41 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Try the top command.
 
Old 04-20-2004, 05:18 AM   #3
vtluu
LQ Newbie
 
Registered: Mar 2004
Location: Vietnam
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your suggestion. The top command provides information about processes and CPU usage. But I want library functions (or mechanism) to get timing information about a thread in my C program, something just like GetThreadTimes() function on Windows platform.

I have done a lot of searches from search engines but no solutions found.

Do you have any idea?

Thanks and regards,

Luu Vo.
 
  


Reply


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
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 09:15 AM
re : News: Useful thread and information about installing programs. AcerKev Linux - General 0 07-06-2004 02:55 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-07-2004 11:11 PM
Useful thread and information about installing programs. trickykid Linux - General 1 05-20-2003 04:39 PM
Useful thread and information about UNINSTALLING programs. BeFalou Linux - General 2 02-13-2003 05:41 PM


All times are GMT -5. The time now is 12:25 PM.

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