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