home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!utcsri!skule.ecf!epas!nyama!torag!robohack!hybrid!jrh!jrh
- From: jrh@jrh.uucp (James R. Hamilton)
- Subject: Re: How to redirect outputs from the command "time" into a file?
- Message-ID: <1992Nov07.150640.190296@jrh.uucp>
- Organization: private system, Toronto, Ontario
- References: <1992Nov5.023656.1850@cs.tulane.edu>
- Date: Sat, 07 Nov 1992 15:06:40 GMT
- Lines: 34
-
- In article <1992Nov5.023656.1850@cs.tulane.edu> mt0lamg@convex1.tcs.tulane.edu (Louis X. Lee) writes:
- >
- >Hello, everyone:
- >
- >My first question is about saving outputs from the timing command
- >"time" into a file. I tried "time a.out > a.time", but it did not
- >work. How to capture the outputs into a file? ( I am running
- >AIX3.2 on RS/6000 model 550).
-
- Both the csh and ksh provide time command builtins that, to my knowledge,
- can't be redirected. However, the following will do what you want by
- forcing the time command to run instead of the time shell builtin:
-
- /bin/time cmd >cmd.out 2>time.out
-
- >
- >My second related question is about the meanings of the outputs
- >from the command "time". I guess "real time" is real time, but what
- >is "user time"? What is "system time"? InfoExplorer does not
- >provide me with a satisfactory answer.
- >
- Real time is the elapse, wall clock time, that the program took to
- complete. User time is the amount of time that the program was
- actually executing (as opposed to waiting on a time slice, or I/O
- etc.) in the user address space rather than the kernel. The sys
- time is the amount of time spent executing kernel code on behalf
- of the program (I/O requests are a typical example).
-
- --jrh
- --
-
- James R. Hamilton inet: jrh@jrh.gts.org
- telephone: +1 416 493 4162 uunet: ...!uunet!jrh!jrh
- Toronto, Canada work: jrh@torolab6.vnet.ibm.com
-