Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Process runtime(real & virtual) mesurments

807567May 23 2001 — edited May 26 2001
hi,
I need to mesure how long my task is runnig for peformence analisys in high resolution (microseconds).
I'm looking for a system call to provide me with this inforamtion,
so far i found getrusage() but the resolotion result is in 10ms which is too slow.
I need a cross-platform solution(i.e std function) because development is on linux system.
On linux i discovered a structure named task_current which holds this info, but i can't access it.
Is there a parallel for this on other platforms?
The info held in struct task_current is in cpu time(ticks). any idea how to convert it to human time?

Thanks.
Assaf
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2001
Added on May 23 2001
1 comment
99 views