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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,61d8daec8bfa486e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1.cambriumusenet.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.wiretrip.org!feeder2.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: An Example for Ada.Execution_Time Date: Tue, 28 Dec 2010 21:10:30 -0600 Organization: Jacob Sparre Andersen Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1293592233 9926 69.95.181.76 (29 Dec 2010 03:10:33 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 29 Dec 2010 03:10:33 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:17183 Date: 2010-12-28T21:10:30-06:00 List-Id: "BrianG" wrote in message news:ifbi5c$rqt$1@news.eternal-september.org... ... > 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. This seems like a totally silly question. There are a lot of well-designed packages in Ada that don't do anything useful without at least one or more other packages. Indeed, if you consider "Standard" to be a separate package (and it is), there are hardly any packages that *don't* require some other package to be useful. More to the point, you probably need Ada.IO_Exceptions to use Ada.Directories effectively (use of any package without error handling is toy use); Ada.Streams.Stream_IO require use of Ada.Streams (a separate package, which you will need separate use clauses for even if you get it imported automatically); Ada.Strings.Maps aren't useful for anything unless you combine them with one of the string handling packages, and so on. Perhaps you would have been happier if Ada.Execution_Time had been a child of Ada.Real_Time (exactly as in the string case), but this wouldn't change anything. The odd thing is that Duration is defined in Standard, rather than some more appropriate package. Giving this some sort of religious importance is beyond silly... Randy.