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)
Hi,
I got a unix script which copies a file from my AIX machine to a file server using SCP command. I am calling this script 3 times in my process after a time interval say 5mins. My issue here is like most of the time its not sending the file at the first time run while other 2 will work fine.... (10 Replies)
Hello Guys,
I downloaded the top package for solaris from sunfreeware.com and installed them on 8 blades. It works fine on some but on some it fails. Says that "Invalid argument". Can anyone give me some ideas on this?:confused:? (14 Replies)
Hi,
I am trying to run a shell script on solaris,some time it works fine and some times it fails unexpectedly. There is a script called "autostart.sh" which automatically starts the Application server but some times the script fails to strat the application server. can anyone tell me what... (10 Replies)
It is customary to use structs in c code. but it is suprising to obtain different results. Sometimes a pointer is returned. But a failure would appear at other attempts.
e.g.
struct _site {
int type;
char A;
char B;
.
.
... (12 Replies)
Hi,
New to scripting.
I have datetime as a String and I need to add some hours/minutes in to that.
21/10/2009 23:00:00
After adding 180 minutes; it will look like this
22/10/2009 02:00:00
Regards,
Vikas Mahajan (9 Replies)
Hi all,
I am facing problem with my Tape drive (hp) (/dev/rct0) on SCO Unix version 6.0.0. Sometimes tar works fine but some times it doesnot work and I have to restart the server to get it work. One reboot/shutdown is OK. to solve the problem. Error is "cannot open ... (9 Replies)
Hi,
To get the batch status, I will need to check if the particular job started after 5PM. if the job start time is before 5 pm, then it means that the job has not started for this particular date. I will run the script with date as argument.
For eg:
BS 07/10/2012
Start time from the log is... (8 Replies)
Hello All,
I have a date with timestamp stored in a variable and another variable which stores no. of days.
Var1=2014-12-11 12:54:21
Var2=5
In my unix script, I have to add the no. of days stored in var2 with the var1 date.
Var3=var1+var2=2014-12-16 12:54:21
Can you please advise if... (8 Replies)
Please join me in congratulations to Wolf Machowitsch (bakunin) for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry:
"The Order of the Wizard's Hat - Lifetime Achievement Award"
This "Order of the Wizard's Hat" is presented to Wolf Machowitsch (bakunin)... (11 Replies)
Please join me in congratulating RudiC for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry:
"The Order of the Wizard's Hat - Lifetime Achievement Award"
This "Order of the Wizard's Hat" is presented to RudiC for Computer Wizardry in the UNIX Operating... (10 Replies)
I typed Example 2-3 from Cooper`s Advanced Bash-Scripting Guide into my ~/bin, and it will only run if I include ./ before the filename. My other scripts in the same directory do not behave this way. $PATH includes ~/bin. I copied the file into /usr/local/bin, and it runs without ./ . (29 Replies)