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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,61d8daec8bfa486e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: An Example for Ada.Execution_Time Date: Mon, 27 Dec 2010 21:31:06 -0500 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 28 Dec 2010 02:31:11 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="P3VOJKrHjsVRylhXLW3J8w"; logging-data="28509"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZidBZynsMA4/ugEpMzSWk" User-Agent: Thunderbird 2.0.0.24 (X11/20100623) In-Reply-To: Cancel-Lock: sha1:EBRrP/SEAfecqwduEx42z9lByyk= Xref: g2news2.google.com comp.lang.ada:17147 Date: 2010-12-27T21:31:06-05:00 List-Id: anon@att.net wrote: > You ask for an example. I'll assume I am the "you". (Since you don't specify and didn't relate it to the original thread.) I asked for: >> An algorithm comparison program might look like: >> >> with Ada.Execution_Time ; >> with Ada.Execution_Time.Timers ; >Given the below program, please add some of the missing details to >show how this can be useful without also "with Ada.Real_Time". >Neither Execution_Time or Execution_Time.Timers provides any value >that can be used directly. > >> >> procedure Compare_Algorithm is >...] You provided: > > Here is an example for packages (Tested using MaRTE): ... > with Ada.Execution_Time ; > with Ada.Real_Time ; ... > with Ada.Execution_Time ; > with Ada.Execution_Time.Timers ; > with Ada.Real_Time ; ... As the extracts show, you could not do what I asked for. You said in the original post you could do it with only the 2 Execution_Time 'with's. My entire point in this thread is that Execution_Time, as defined, is useless by itself. --BrianG