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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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 Path: g2news1.google.com!postnews.google.com!d45g2000hsc.googlegroups.com!not-for-mail From: Konrad Grzanek Newsgroups: comp.lang.ada Subject: Re: Ada.Real_Time behavior with GNAT Date: Sat, 29 Mar 2008 14:49:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9ce244f9-4de9-4377-9d3e-37a48c4e3f69@d45g2000hsc.googlegroups.com> References: <1b4dfb0b-ada6-416d-bb2a-f00d02a112c3@s13g2000prd.googlegroups.com> NNTP-Posting-Host: 83.26.214.69 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1206827356 13246 127.0.0.1 (29 Mar 2008 21:49:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Mar 2008 21:49:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d45g2000hsc.googlegroups.com; posting-host=83.26.214.69; posting-account=8ledOwoAAACzwtoronhUWHsxPqF356aB User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.26 (Windows NT 5.1; U; pl),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20637 Date: 2008-03-29T14:49:16-07:00 List-Id: > It's even more interesting: =A0My version worked but it is slightly > different from your original in that Timing is enclosed in Main > procedure. =A0When I put Timing in separate package and it also worked > fine. > > When I used your code exact it did show 0 time. =A0It got to do with > elaboration sequence as was mentioned already. =A0I think for practical > reasons real-time applications will be multi-package anyways, so I > would not worry about it much. > Well, actually I started from somewhat more complicated point. I had my Main procedure placed in Main.adb and there was also a package called Sim.Time_Utils where all my timing procedures and types were defined. So the initial situation was exactly like the one mentioned by you - RT elements used inside a package body. It wasn't working so I decided to create the Timing test. I also tried to enclose Timing in Main like you did. With 0.0000 Total_T. So in my environment it doesn't help.