home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6380 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.0 KB

  1. Path: sparky!uunet!mnemosyne.cs.du.edu!mercury.cair.du.edu!copper!rvaniwaa
  2. From: rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Third try: timing the run time of algorithms PLEASE HELP!!!!
  5. Message-ID: <4364@copper.Denver.Colorado.EDU>
  6. Date: 13 Nov 92 01:19:54 GMT
  7. Organization: University of Colorado at Denver
  8. Lines: 10
  9.  
  10. Well, this will be my third try for help on this topic.  What I need
  11. to do is get the actual CPU time for an algorithm.  The clock() call
  12. that is in gcc gives the real time between calls and I need the actual
  13. cpu time.  From a few sources, I have determined that OS/2 does keep
  14. track of the processor time on a thread by thread basis (see The
  15. Design of OS/2 for reference).  Since it is kept track of, I think
  16. there must be a way of accessing it.  Are there any IBMers out there
  17. who can help with some system call that will give this to me???  If
  18. I cannot find this, I will have to switch over to DOS to compile, run,
  19. and time my programs.  PLEASE SAVE ME FROM THIS FATE!!!!!!!!!!!!!!!
  20.