From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!seas.gwu.edu!mfeldman From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: Re: cpu time VS. calendar time Message-ID: <2055@sparko.gwu.edu> Date: 30 Jul 90 23:32:55 GMT References: <84027@srcsip.UUCP> Reply-To: mfeldman@seas.gwu.edu () Organization: The George Washington University, Washington D.C. List-Id: In article <84027@srcsip.UUCP> thompson@SRC.Honeywell.COM (Todd Thompson) writes: > >We are trying to find out how much cpu time a procedure or function call >takes. We've found the calendar package with function clock. Is there an >equivilant which will give me cpu time? TIA. The LRM does not call out a standard package for retrieving CPU time. Retrieving CPU time is therefore system dependent, and is probably best done through the use of pragma interface. I have written a package with a portable specification that gives simple CPU times. I have Unix and PC versions; the Unix version uses pragma interface and a little C program to get the CPU time. I can send this to anyone who wishes it; let me know by e-mail. If there is a lot of interest, I will post it. --------------------------------------------------------------------------- Prof. Michael Feldman Department of Electrical Engineering and Computer Science The George Washington University Washington, DC 20052 +1-202-994-5253 mfeldman@seas.gwu.edu ---------------------------------------------------------------------------