home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6420 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1.8 KB  |  35 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!wupost!gumby!destroyer!ncar!uchinews!ellis!sip1
  3. From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
  4. Subject: Re: Third try: timing the run time of algorithms PLEASE HELP!!!!
  5. Message-ID: <1992Nov14.014910.4771@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: sip1@midway.uchicago.edu
  8. Organization: Dept. of Econ., Univ. of Chicago
  9. References: <4364@copper.Denver.Colorado.EDU>
  10. Date: Sat, 14 Nov 1992 01:49:10 GMT
  11. Lines: 22
  12.  
  13. In article <4364@copper.Denver.Colorado.EDU> rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden) writes:
  14. >Well, this will be my third try for help on this topic.  What I need
  15. >to do is get the actual CPU time for an algorithm.  The clock() call
  16. >that is in gcc gives the real time between calls and I need the actual
  17. >cpu time.  From a few sources, I have determined that OS/2 does keep
  18. >track of the processor time on a thread by thread basis (see The
  19. >Design of OS/2 for reference).  Since it is kept track of, I think
  20. >there must be a way of accessing it.  Are there any IBMers out there
  21. >who can help with some system call that will give this to me???  If
  22. >I cannot find this, I will have to switch over to DOS to compile, run,
  23. >and time my programs.  PLEASE SAVE ME FROM THIS FATE!!!!!!!!!!!!!!!
  24.  
  25. Funny you should ask...
  26.  
  27. IBM's SPM/2 2.0 (System Performance Monitor) was just released, and it
  28. may be what you are looking for.  Ask about it.
  29.  
  30. -- 
  31. Timothy F. Sipples      | Read the OS/2 FAQ List 2.0g, available from
  32. sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
  33. Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
  34. of Chicago, 60637       | [Read the List, THEN post to ONE OS/2 newsgroup.]
  35.