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,36a9f38dd6514fc8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!nospam From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: gnat: Execution_Time is not supported in this configuration Date: Fri, 04 Dec 2009 13:28:24 -0500 Organization: The Wasteland Message-ID: References: <5e5d6fb5-e719-4195-925c-d1286699393d@f16g2000yqm.googlegroups.com> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.0 Cancel-Lock: sha1:9OwRGE68K5YlR7nbYkLjFk4Vo5U= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news1.google.com comp.lang.ada:8308 Date: 2009-12-04T13:28:24-05:00 List-Id: In article <5e5d6fb5-e719-4195-925c-d1286699393d@f16g2000yqm.googlegroups.com>, singo 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: 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; $ ./executiontime 0.000008000 0.100168000 0.200289000 0.300409000 0.400527000 0.500575000 ... -- John B. Matthews trashgod at gmail dot com