comp.lang.ada
 help / color / mirror / Atom feed
From: Konrad Grzanek <kongra@gmail.com>
Subject: Re: Ada.Real_Time behavior with GNAT
Date: Sat, 29 Mar 2008 14:49:16 -0700 (PDT)
Date: 2008-03-29T14:49:16-07:00	[thread overview]
Message-ID: <9ce244f9-4de9-4377-9d3e-37a48c4e3f69@d45g2000hsc.googlegroups.com> (raw)
In-Reply-To: f3bdcdfe-052d-4707-a9e1-38111f145028@m71g2000hse.googlegroups.com

> It's even more interesting:  My version worked but it is slightly
> different from your original in that Timing is enclosed in Main
> procedure.  When I put Timing in separate package and it also worked
> fine.
>
> When I used your code exact it did show 0 time.  It got to do with
> elaboration sequence as was mentioned already.  I 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.




  reply	other threads:[~2008-03-29 21:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-29 13:51 Ada.Real_Time behavior with GNAT kongra
2008-03-29 16:50 ` george.priv
2008-03-29 17:29   ` Georg Bauhaus
2008-03-29 19:06     ` george.priv
2008-03-29 19:15     ` Konrad Grzanek
2008-03-29 18:11 ` Simon Wright
2008-03-29 18:25 ` Dmitry A. Kazakov
2008-03-29 19:46   ` Konrad Grzanek
2008-03-29 21:21     ` george.priv
2008-03-29 21:49       ` Konrad Grzanek [this message]
2008-03-30  0:14     ` Georg Bauhaus
2008-03-30 17:12 ` Semantics of statement reordering relevant to Ada.Real_Time Eric Hughes
2008-03-30 18:59   ` Robert A Duff
2008-03-30 21:12     ` Eric Hughes
2008-03-30 21:28       ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox