• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 765
  • Last Modified:

Getting USER CPU/ Idle CPU time for a process - SOS !

Hi gurus,
   In my code,
I need to take snapshot of values of CPU in User/System, calls, Idle time
Performa an operation
Take another operation

and then find out the time taken to perform that operation.

What function/system feature shud i use?
Pls help.
Am on SOLARIS.
0
asharma123
Asked:
asharma123
1 Solution
 
soupdragonCommented:
See the timex man page for details of how to do this, basically 'timex command' in your script will give the info you require.
0
 
liddlerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by soupdragon

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now