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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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-27 06:42:46 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news.mindspring.net!not-for-mail From: Marin David Condic Newsgroups: comp.lang.ada Subject: Re: Duration vs. Ada.Real_Time Date: Sat, 27 Jan 2001 09:40:03 -0500 Organization: MindSpring Enterprises Message-ID: <3A72DDC2.3FB134D6@acm.org> References: <980495512.529981@edh3> <3A71814B.7E8CCF60@acm.org> <94s5bl$r1r$1@nnrp1.deja.com> <3A71E4F6.6D7015AD@acm.org> <94sqch$fls$1@nnrp1.deja.com> NNTP-Posting-Host: d1.56.bb.f8 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 27 Jan 2001 14:41:56 GMT X-Mailer: Mozilla 4.07 [en] (WinNT; I) Xref: supernews.google.com comp.lang.ada:4600 Date: 2001-01-27T14:41:56+00:00 List-Id: Keith Thompson wrote: > An implementation could easily declare type Duration in such a way > that 1.0/60.0 is exactly representable. > > On the other hand, you probably don't want Duration to have that kind > of dependency on a particular system. Why not? For a specific target that is going to have a specific clock used for timing of delays, etc., Duration can be an exact line-up with that clock. If the implementation goes to another target, you'd have to change the declaration of Duration to match its clock. What would be wrong with dependency on that sort of system? (Presumption being that in both cases, the clock has a granularity less than 20mSec so it is within the standard.) This is assuming we are talking about realtime compilers as opposed to something that targets, say, Unix & the time source is of questionable value. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================