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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c3f76cf9b2829c4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-30 06:37:57 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out.usenetserver.com!newsfeed.direct.ca!look.ca!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Duration vs. Ada.Real_Time Date: 30 Jan 2001 09:33:38 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <980495512.529981@edh3> <3A71814B.7E8CCF60@acm.org> <94s5bl$r1r$1@nnrp1.deja.com> <3A71E4F6.6D7015AD@acm.org> <94vo82$kst$1@nnrp1.deja.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 980866003 14387 128.183.220.71 (30 Jan 2001 14:46:43 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 30 Jan 2001 14:46:43 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:4703 Date: 2001-01-30T14:46:43+00:00 List-Id: Robert Dewar writes: > In article <3A71E4F6.6D7015AD@acm.org>, > Marin David Condic wrote: > > > I would think that a reasonable implementation of Ada for > > realtime systems would want to insure that the precision had > > some relationship to the accuracy of the clock available. > > Why do you think that? > > The RM contains no encouragement for this thought! > > Duration is used for other things besides the delay statement. Perhaps it would be more appropriate for Marin to request that type Ada.Real_Time.Time_Span (LRM appendix D) match the hardware clock; that is more clearly intended to be a "hard real-time" clock type. > And also, programs do various calculations with Duration, if there > is more precision, these calculations are more accurate. I agree with Marin here; convert to a type that you know or control the precision of to do computations. -- -- Stephe