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: 103376,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!57g2000hsv.googlegroups.com!not-for-mail From: andrew Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines Date: Fri, 26 Oct 2007 10:21:10 -0700 Organization: http://groups.google.com Message-ID: <1193419270.872928.86840@57g2000hsv.googlegroups.com> References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> <1193416987.425545.80810@v29g2000prd.googlegroups.com> <1193417619.216687.95600@v3g2000hsg.googlegroups.com> <1193418278.033289.106280@y27g2000pre.googlegroups.com> NNTP-Posting-Host: 139.78.128.110 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1193419271 3934 127.0.0.1 (26 Oct 2007 17:21:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 26 Oct 2007 17:21:11 +0000 (UTC) In-Reply-To: <1193418278.033289.106280@y27g2000pre.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 57g2000hsv.googlegroups.com; posting-host=139.78.128.110; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2590 Date: 2007-10-26T10:21:10-07:00 List-Id: On Oct 26, 12:04 pm, Anh Vo wrote: > On Oct 26, 9:53 am, andrew wrote: > > > > On Oct 26, 7:58 am, andrew wrote: > > > > > Is there a put or put_line procedure to output the value of variables > > > > declared as the Time type defined in the Real_Time package? > > > > May I ask for purpose you would like to achieve? > > > For the purpose of collecting statistical data about the performance > > of an algorithm. > > Use function To_Duration (...) to convert Time to Duration. Then, > apply attribute Duration'Image (To_Duration(...)) to obtain your > number. I think you can take it from here. > > AV Great! I'll play around with that. In the mean time, Time_Unit is defined as a constant := 10#1.0#E-9, is Time_Unit then a "real literal"? How can I convert a "real literal" to a scalar type (maybe that's a contradiction?)? Thanks