comp.lang.ada
 help / color / mirror / Atom feed
From: Theodore Dennison <dennison@escmail.orl.mmc.com>
Subject: Re: Help performing timings
Date: 1995/04/07
Date: 1995-04-07T00:00:00+00:00	[thread overview]
Message-ID: <3m4h0b$b7@theopolis.orl.mmc.com> (raw)
In-Reply-To: 797193381snz@lynx1.demon.co.uk

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)





      parent reply	other threads:[~1995-04-07  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-06  0:00 Help performing timings Simon Ibberson
1995-04-07  0:00 ` Robert Dewar
1995-04-07  0:00 ` Theodore Dennison [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox