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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b7cba06f5bdbaff2 X-Google-Attributes: gid103376,public From: Theodore Dennison Subject: Re: Help performing timings Date: 1995/04/07 Message-ID: <3m4h0b$b7@theopolis.orl.mmc.com>#1/1 X-Deja-AN: 100070421 references: <797193381snz@lynx1.demon.co.uk> content-type: text/plain; charset=iso-8859-1 organization: IPL InterNetNews site x-url: news:797193381snz@lynx1.demon.co.uk mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 1.1b2 (X11; I; SunOS 4.1.3_U1 sun4c) Date: 1995-04-07T00:00:00+00:00 List-Id: si@lynx1.demon.co.uk (Simon Ibberson) wrote: >I am new to both Ada (4 weeks experience) and this newsgroup. > >I need some help/information on how to perform some timings of Ada >procedure calls, what I want to do is: > > Read the current time > Make a procedure call > Read the current time > Calculate the elapsed time > >I require very accurate timings, in the order of micro-seconds. >Are there standard libraries for doing this? I will assume you mean Ada 83... No. You will have to make system calls. The correct calls depand upon what platform/OS/compiler you have. However, it sounds to me like what you want is a performance analyzer. Most good development systems come with one. They work much like a debugger, but merely log information and continue, rather than stopping at their "trace points". Check you vendor/O.S. documentation to see if you have one. Most come set up to automaticly collect data on the amount of time spent in each routine/program block. T.E.D. (strucutred programming mafioso)