Latest News Updates

Latest News    

Tuesday 1 February 2011

PROCESS EXECUTION TIME

To find the execution time of a process, the 'time' command will tell you the answer.
'man  time'.

Syntax:
time <executable/command (with arguments)>

For Ex:
$ /usr/bin/time find / -name csh.1 -print

real     1:15.5

(time elapsed between invocation and termination)

user        0.3

(time spent in user process code)

sys         3.3

(time spent in system code)

The executable/command is run by the 'time' as a child process and then elapsed, user, system time are reported. There is a csh  version of 'time'. It will  report the time in different format.

In Solaris 'ptime' gives more accurate results.

/usr/proc/bin/ptime command/executable [ arg ... ]




People who read this post also read :



0 comments:

Post a Comment