From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: gnat: Execution_Time is not supported in this configuration
Date: Fri, 04 Dec 2009 13:28:24 -0500
Date: 2009-12-04T13:28:24-05:00 [thread overview]
Message-ID: <nospam-F96032.13282404122009@news.aioe.org> (raw)
In-Reply-To: 5e5d6fb5-e719-4195-925c-d1286699393d@f16g2000yqm.googlegroups.com
In article
<5e5d6fb5-e719-4195-925c-d1286699393d@f16g2000yqm.googlegroups.com>,
singo <sander.ingo@gmail.com> wrote:
> I have recently become very interested of Ada 2005, and it's
> real-time annex. However, as a new user of Ada I face some problems
> with the software.
>
> I cannot get the package Ada.Execution_Time to work with gnat,
> although the gnat documentation says that the real-time annex is
> fully supported... I use the gnat version 4.4 on a Ubuntu 9.10
> distribution.
>
> The typical error message I get is
>
> gcc -c executiontime.adb
> Execution_Time is not supported in this configuration
> compilation abandoned
Georg Bauhaus has helpfully referred you to comments in
Ada.Execution_Time.
> How can I configure gnat to support the Ada.Execution_Time package?
I defer to Dmitry A. Kazakov about Windows, but this variation produces
similar results on MacOS 10.5 & Ubuntu 9.10 using GNAT 4.3.4:
<code>
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
procedure ExecutionTime is
task T;
task body T is
Start : Time := Clock;
Interval : Time_Span := Milliseconds(100);
begin
loop
Put_Line(Duration'Image(To_Duration(Clock - Start)));
delay To_Duration(Interval);
end loop;
end T;
begin
null;
end ExecutionTime;
</code>
<console>
$ ./executiontime
0.000008000
0.100168000
0.200289000
0.300409000
0.400527000
0.500575000
...
</console>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2009-12-04 18:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-04 11:09 gnat: Execution_Time is not supported in this configuration singo
2009-12-04 11:26 ` Dmitry A. Kazakov
2009-12-04 12:10 ` Georg Bauhaus
2009-12-07 8:08 ` singo
2009-12-07 17:13 ` John B. Matthews
2009-12-04 18:28 ` John B. Matthews [this message]
2009-12-04 19:01 ` Dmitry A. Kazakov
2009-12-04 21:50 ` John B. Matthews
2009-12-05 2:59 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox