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!proxad.net!feeder1-2.proxad.net!feeder.erje.net!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: Thu, 30 Dec 2010 18:51:30 -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: Thu, 30 Dec 2010 23:51:38 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="VMC9PqGY8ksIlUSlWhJs6Q"; logging-data="28517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Jql+1OmeLp8nqtAiUzJct" User-Agent: Thunderbird 2.0.0.24 (X11/20100623) In-Reply-To: Cancel-Lock: sha1:fkFTK57j3WZIgIbcavmOAFE9wms= Xref: g2news2.google.com comp.lang.ada:17241 Date: 2010-12-30T18:51:30-05:00 List-Id: Randy Brukardt wrote: > "BrianG" wrote in message > news:ifbi5c$rqt$1@news.eternal-september.org... > ... >> >Neither Execution_Time or Execution_Time.Timers provides any value >> >that can be used directly. > > This seems like a totally silly question. > > Giving this some sort of religious importance is beyond > silly... > > Randy. Apparently, asking how a package, defined in the standard, was intended to be used is now a silly question, and asking for an answer to the question I originally asked (which was to clarify a previous response, not to provide an example of use) is a religious debate. I need to revise my definitions. I won't claim to be an expert on the RM, but I don't recall any other package (I did look at the ones you mention) that define a private type but don't provide operations that make that type useful (for some definition of 'use'). Ada.Directories doesn't require Ada.IO_Exceptions to use Directory_Entry_Type or Search_Type; Ada.Streams.Stream_IO doesn't require Ada.Streams (or Ada.Text_IO) to Create/Open/Read/etc. a File_Type. The only thing provided from a CPU_Time is a count in seconds, or another private type. Since D.16 defines CPU_Time as if it were a numeric value, is it too much to ask why a conversion to some form of numeric value wasn't provided? Perhaps either a "-" or To_Duration (and before anyone mentions duplicating the existing function, look at all of the Open/Close/Create/etc. for all the *_IO File_Types)? I wasn't asking for anything to be changed, merely "why" - because I originally thought there might be some use that I hadn't foreseen. Apparently not. (Give the RM definition, making it a child of Real_Time might make it seem more logical, I guess, but since CPU_Time is not really a time, and is not related to "real time" that doesn't seem to make any sense. I would think that would be all the more reason not to relate it to Ada.Real_Time.) --BrianG -- don't ask me -- I'm just improvising -- my illusion of careless flight -- can't you see -- my temperature's rising -- I radiate more heat than light