home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11639 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.5 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!beany.austin.ibm.com!srao
  2. From: srao@beany.austin.ibm.com (Satish Rao)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: How to redirect outputs from the command "time" into a file?
  5. Message-ID: <1992Nov16.151604.15504@awdprime.austin.ibm.com>
  6. Date: 16 Nov 92 15:16:04 GMT
  7. References: <1992Nov5.023656.1850@cs.tulane.edu>
  8. Sender: news@awdprime.austin.ibm.com (USENET News)
  9. Organization: "Personal Systems Programming, IBM Austin"
  10. Lines: 25
  11.  
  12. In article <1992Nov5.023656.1850@cs.tulane.edu> mt0lamg@convex1.tcs.tulane.edu (Louis X. Lee) writes:
  13. >
  14. >Hello, everyone:
  15. >
  16. >My first question is about saving outputs from the timing command
  17. >"time" into a file. I tried "time a.out > a.time", but it did not
  18. >work. How to capture the outputs into a file? ( I am running
  19. >AIX3.2 on RS/6000 model 550).
  20.  You are using the shell's builtin time command.  Run
  21.  /bin/time a.out 2>a.time , or
  22.  /bin/time a.out 1>a.time 2>&1 
  23. >
  24. >My second related question is about the meanings of the outputs
  25. >from the command "time". I guess "real time" is real time, but what
  26. >is "user time"? What is "system time"? InfoExplorer does not
  27. >provide me with a satisfactory answer.
  28. >
  29.  user time -- Time spent in user mode
  30.  System time -- Time spent in kernel mode
  31.  
  32. -- 
  33.   Satish Rao            Consultant, cmdinstl
  34.   512-838-3428                  Internet:srao@beany.austin.ibm.com
  35.                                 Vnet: S25499@ausvm6
  36.   Neither IBM nor Princeton share or back the opinions expressed here
  37.