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

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