On Fri, 13 Jan 2006, Gerard Robin wrote:

> And, what are exactly Elapsed Time and User+System Time ?
> 
> If i run time ./dprof1.pl the outputs are:
> 
> real    0m0.033s
> user    0m0.011s
> sys     0m0.002s
> 
> If i run time ./dprof3.pl the outputs are:
> 
> real    0m0.059s
> user    0m0.018s
> sys     0m0.004s
> 
> What relation exists between the times of "time" an te times of dprofpp ?

The `times` manpage may help, as might `getrusage`:

http://www.hmug.org/man/3/times.php
http://www.hmug.org/man/2/getrusage.php
http://publib16.boulder.ibm.com/pseries/en_US/libs/basetrf1/getrusage_64.htm

The way that IBM version of the manpage is more oriented towards C 
programmers using the call, but the basic idea still gets through:

This information is read from the calling process as well as from each 
completed child process for which the calling process executed a wait 
subroutine.

    tms_utime   The CPU time used for executing instructions in the
                user space of the calling process
    tms_stime   The CPU time used by the system on behalf of the calling
                process.
    tms_cutime  The sum of the tms_utime and the tms_cutime values for
                all the child processes.
    tms_cstime  The sum of the tms_stime and the tms_cstime values for
                all the child processes.

    Note:
    The system measures time by counting clock interrupts. The precision
    of the values reported by the times subroutine depends on the rate
    at which the clock interrupts occur.

Helpful? 


-- 
Chris Devers
DO NOT LEAVE IT IS NOT REAL

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to