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: a07f3367d7,c8acfc87fbb1813d X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!g10g2000yqh.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Timing code blocks Date: Fri, 5 Mar 2010 00:33:54 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <2d5bead9-72f9-4c84-9ac1-a058c2591ef1@c37g2000prb.googlegroups.com> <13j6juslcud2k.1n4jnpj74p3k$.dlg@40tude.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1267778034 21751 127.0.0.1 (5 Mar 2010 08:33:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 5 Mar 2010 08:33:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g10g2000yqh.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9417 Date: 2010-03-05T00:33:54-08:00 List-Id: Dmitry A. Kazakov wrote on comp.lang.ada: > On Thu, 4 Mar 2010 22:34:47 -0800 (PST), deadlyhead wrote: >> The problem I'm having, though, is that the timing just isn't >> happening. =A0This code will run for 15 seconds and when I examine the >> time span, it tells me that no time passed. > > This is an ancient bug, which managed to survive a number of GNAT compile= r > versions. > > As a workaround, add delay 0.0 at the beginning of your program: [...] > delay 0.0; -- Wake up that dozing Ada RTL! I was not aware of this bug; is there a PR in Bugzilla for it? I don't see one. Perhaps that might explain how this bug survived several versions of GNAT? -- Ludovic Brenta.