Sponsored Content
Top Forums UNIX for Advanced & Expert Users any way to commit idle tasks in unix? Post 302166737 by jim mcnamara on Tuesday 12th of February 2008 04:47:03 PM
Old 02-12-2008
What you are asking is kind of non-sequitur for unix. Benchmarking does not measure elapsed time, use a tool like time
Code:
time my_benchmark_code parm1 parm2

It gives output like this:
Code:
real     0m0.44s
user    0m0.21s
sys     0m0.01s

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.
 

8 More Discussions You Might Find Interesting

1. SCO

Identifiy and Kill Idle Unix(SCO) Process called externally

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)
Discussion started by: vbalajis
1 Replies

2. SCO

Scheduled tasks in SCO Unix 5.0.5

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)
Discussion started by: uzomaok
2 Replies

3. AIX

commit

good morning Can you explain to me what is a "commit" (aix 5.3) ? There is no man for this command. thank you (1 Reply)
Discussion started by: pascalbout
1 Replies

4. Shell Programming and Scripting

cvs diff then commit

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)
Discussion started by: alangibson
1 Replies

5. UNIX for Advanced & Expert Users

cvs[commit aborted]:'root is not allowed to commit changes'

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)
Discussion started by: rksubash
1 Replies

6. Shell Programming and Scripting

db2 commit for every 50 rows

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)
Discussion started by: kmanivan82
0 Replies

7. Shell Programming and Scripting

Commit in PL/SQL using Shell script

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)
Discussion started by: Amit.Sagpariya
0 Replies

8. Shell Programming and Scripting

give ldap a/c during commit in commit line section

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
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)
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy