Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtime(3f) [bsd man page]

ETIME(3F)																 ETIME(3F)

NAME
etime, dtime - return elapsed execution time SYNOPSIS
function etime (tarray) real tarray(2) function dtime (tarray) real tarray(2) DESCRIPTION
These two routines return elapsed runtime in seconds for the calling process. Dtime returns the elapsed time since the last call to dtime, or the start of execution on the first call. The argument array returns user time in the first element and system time in the second element. The function value is the sum of user and system time. The resolution of all timing is 1/HZ sec. where HZ is currently 60. FILES
/usr/lib/libU77.a SEE ALSO
times(2) 4.2 Berkeley Distribution May 15, 1985 ETIME(3F)

Check Out this Related Man Page

rusage(1B)					     SunOS/BSD Compatibility Package Commands						rusage(1B)

NAME
rusage - print resource usage for a command SYNOPSIS
/usr/ucb/rusage command DESCRIPTION
The rusage command is similar to time(1). It runs the given command, which must be specified; that is, command is not optional as it is in the C shell's timing facility. When the command is complete, rusage displays the real (wall clock), the system CPU, and the user CPU times which elapsed during execution of the command, plus other fields in the rusage structure, all on one long line. Times are reported in sec- onds and hundredths of a second. EXAMPLES
Example 1 The format of rusage output The example below shows the format of rusage output. example% rusage wc /usr/share/man/man1/csh(1) 3045 13423 78071 /usr/share/man/man1/csh(1) 2.26 real 0.80 user 0.36 sys 11 pf 38 pr 0 sw 11 rb 0 wb 16 vcx 37 icx 24 mx 0 ix 1230 id 9 is example% Each of the fields identified corresponds to an element of the rusage structure, as described in getrusage(3C), as follows: real elapsed real time user ru_utime user time used sys ru_stime system time used pf ru_majflt page faults requiring physical I/O pr ru_minflt page faults not requiring physical I/O sw ru_nswap swaps rb ru_inblock block input operations wb ru_oublock block output operations vcx ru_nvcsw voluntary context switches icx ru_nivcsw involuntary context switches mx ru_maxrss maximum resident set size ix ru_ixrss currently 0 id ru_idrss integral resident set size is ru_isrss currently 0 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), time(1), getrusage(3C), attributes(5) BUGS
When the command being timed is interrupted, the timing values displayed may be inaccurate. SunOS 5.11 14 Sep 1992 rusage(1B)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

modify actime and modtime of symbolic links

Hi, I am trying to duplicate a symbolic link, the new link should be the exact replica of the original one, with same file attributes, permissions, owner, group and even the time. i m successful in changing the owner and group, but when i try to change the time using utime, the time of the... (3 Replies)
Discussion started by: avanigadhai
3 Replies

2. Shell Programming and Scripting

HowTo: reg expr doing grep "timestamp>$DesiredTime" logfile ?

I know I asked a similar question but I want to know if there is a regular expression existing that with a korn shell cmd, finds any timestamp data records in a file where it is greater then a timestamp in a shell variable ? something like : grep all records where it has a timestamp >... (5 Replies)
Discussion started by: Browser_ice
5 Replies

3. Programming

SO_SNDTIMEO in setsockopt() doesn't work in send()

I create a program that need a timeout on both send() and recv() function, but I found that SO_SNDTIMEO doesn't work but SO_RCVTIMEO works!! int sock; int bytesRcvd, totalBytesRcvd = 0; struct sockaddr_in servAddr; struct timeval tv; int rx = 0; int tx... (1 Reply)
Discussion started by: sehang
1 Replies

4. UNIX for Advanced & Expert Users

Xt timer call, XtAppAddTimeout, hangs on system clock jump backwards

Hi, I've got an issue which I've been 'google-fu'ing without much luck. We have a legacy program which has been plagued by an issue for a long time and I've been tasked to investigate/fix. The program uses XMotif2.1 (required due to dependency on an old GUI designer) and runs on a RHEL7... (4 Replies)
Discussion started by: altrefrain
4 Replies