🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1876

Third try: timing the run time of algorithms PLEASE HELP!!!!

#1876
From: Ronald J. Vaniwaarden
Date: Fri, 13 Nov 1992 01:19
10 lines
1084 bytes
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!!!!!!!!!!!!!!!
Technical Details
Message-ID: <4364@copper.Denver.Colorado.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!mnemosyne.cs.du.edu!mercury.cair.du.edu!copper!rvaniwaa

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mnemosyne.cs.du.edu!mercury.cair.du.edu!copper!rvaniwaa
From: rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden)
Newsgroups: comp.os.os2.programmer
Subject: Third try: timing the run time of algorithms PLEASE HELP!!!!
Message-ID: <4364@copper.Denver.Colorado.EDU>
Date: 13 Nov 92 01:19:54 GMT
Organization: University of Colorado at Denver
Lines: 10