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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,101c38a932801b81 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Real_Time behavior with GNAT Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sat, 29 Mar 2008 19:25:05 +0100 Message-ID: NNTP-Posting-Date: 29 Mar 2008 19:25:08 CET NNTP-Posting-Host: 1d9f2284.newsspool4.arcor-online.net X-Trace: DXC=VPUA3U5Qf3>NTD55K=4IUK2D1S^[Hl1L=8[6LHn;2LCV>[ On Sat, 29 Mar 2008 06:51:58 -0700 (PDT), kongra wrote: > I have a question related to the Ada.Real_Time package. [...] > Sleep_T : constant Duration := Duration (0.0001); You do don't need type conversion here: Sleep_T : constant Duration := 0.0001; -- This is OK [...] > Can it be explained or is there something I don't know about timing in > Ada ? I remotely remember a discussion about this compiler bug It was discussed in comp.lang.ada some time ago. I also remember that some people mentioned tasking problems also circumvented by an initial delay. Which BTW can be just 0.0; My explanation is that GNAT RTL is improperly elaborated under Windows. Fortunately, a delay at the program beginning wakes it up. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de