What you are asking is kind of non-sequitur for unix. Benchmarking does not measure elapsed time, use a tool like time
It gives output like this:
real = wall time
user = time in user mode
sys = time in kernel mode
If your code is printing out elapsed times this will not work.
Hi,
Please let us know of any possiblity of identifying and killing unix proces invoked externally (by an external tool which does not create a session). 'who' command gives idle time of sessions. But what we are looking for is idle time of a process. 'ps' command gives the elapsed/running... (1 Reply)
Hi.
Am a unix 5.o.5 user. I need to schedule a program to be running everyday at 12 midnight. How do i proceed. I need help.
Also what is the maximum size that sco unix can conveninetly handle. I keep getting this message. "Filesystem greater than device which it is curently located. Pls backup... (2 Replies)
I would like to run a cvs diff to check which files have been changed and then cvs commit these changed files. Does anyone have a shell script which will automate this process? (1 Reply)
Hi ,
can u please any one of you give solution for this ..
when am tryring to commit files from the CVS in Myeclipse J2ee Environment . that i coundnt able to commit and getting the Following error message
cvs :'root' is not allowd to commit files'
am using redhat enterprise 5 Server . (1 Reply)
I am writing a unix shell script for the archive purge job.
During purging, the records will be deleted one by one. I didnot mention anything about db2 commit. By default, the records are commited one by one. Now I need to give commit for every 50 records deletion.
The deletion part is as... (0 Replies)
Hi All,
I have written a shell script in which i am updating records in a table. It is a PL/SQL block. I have to use PL/SQL block as i am using bms_application_info.set_module package
But the problem is once the script completes, i cannot see the updated records in Table. I mean result is... (0 Replies)
Is someone help me to achieve my goal
I am working on a script actually script is working fine .The goal of script is restrict the user for something like while he is doing tocommit in repository he will commit with comment and with some parameter....here I have one more requirement and that is... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies
LEARN ABOUT HPUX
times
times(2) System Calls Manual times(2)NAME
times - get process and child process times
SYNOPSIS DESCRIPTION
fills the structure pointed to by buffer with time-accounting information. The structure defined in is as follows:
struct tms {
clock_t tms_utime; /* user time */
clock_t tms_stime; /* system time */"
clock_t tms_cutime; /* user time, children */
clock_t tms_cstime; /* system time, children */
};
This information comes from the calling process and each of its terminated child processes for which it has executed a or The times are in
units of 1/seconds, where is processor dependent. The value of can be queried using the function (see sysconf(2)).
is the CPU time used while executing instructions in the user space of the calling process.
is the CPU time used by the system on behalf of the calling process.
is the sum of the and of the child processes.
is the sum of the and of the child processes.
RETURN VALUE
Upon successful completion, returns the elapsed real time, in units of 1/of a second, since an arbitrary point in the past (such as system
start-up time). This point does not change from one invocation of to another. If fails, (clock_t) -1 is returned and is set to indicate
the error.
Remarks
has a granularity of one tick. Processes which run less than one tick may not register any value.
ERRORS
fails if buffer points to an illegal address. The reliable detection of this error is implementation dependent.
WARNINGS
Not all CPU time expended by system processes on behalf of a user process is counted in the system CPU time for that process.
SEE ALSO time(1), exec(2), fork(2), gettimeofday(2), sysconf(2), time(2), wait(2).
STANDARDS CONFORMANCE times(2)