home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / programm / 6061 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  770 b 

  1. Path: sparky!uunet!europa.eng.gtefsd.com!emory!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!tamsun.tamu.edu!ttivision1!ashok
  2. From: ashok@ttivision1.tamu.edu (ashok rao)
  3. Newsgroups: comp.unix.programmer
  4. Subject: How to use getrusage() on SPARC?
  5. Date: 28 Jan 1993 05:31:13 GMT
  6. Organization: Texas Transportation Institute
  7. Lines: 20
  8. Distribution: usa
  9. Message-ID: <1k7r31INN71b@tamsun.tamu.edu>
  10. NNTP-Posting-Host: ttivision1.tamu.edu
  11.  
  12. hi folks,
  13.  
  14.     I need to use getrusage() to find how long it
  15.     takes for a certain segment of code to run.
  16.  
  17.     getrusage(--
  18.  
  19.     CODE HERE
  20.  
  21.     getrusage(--
  22.  
  23.     
  24.     I'd like to know if any one has done this or if this
  25.     is the right way to find the time for the certain code.
  26.  
  27.     Proven answers are welcome.
  28.  
  29. thanks
  30. arao
  31. ashok@ttivision1.tamu.edu
  32.