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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cae92f92d6a1d4b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!news.astraweb.com!border3.a.newsrouter.astraweb.com!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Execution_Time Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4d05e737$0$6980$9b4e6d93@newsspool4.arcor-online.net> Date: Sun, 19 Dec 2010 13:27:10 +0100 Message-ID: NNTP-Posting-Date: 19 Dec 2010 13:27:06 CET NNTP-Posting-Host: bf92023f.newsspool2.arcor-online.net X-Trace: DXC=9JW4Hf?SHA\Fm0Y?OE@2^XA9EHlD;3YcR4Fo<]lROoRQ8kF\ONNK>7?QQELC[1Q2n94Q X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:17016 Date: 2010-12-19T13:27:06+01:00 List-Id: On Sun, 19 Dec 2010 05:01:22 +0100, Vinzent Hoefler wrote: > And well, if you're ranting about CPU_Time, Real_Time.Time_Span is not much > better. It's a pain in the ass to convert an Ada.Real.Time_Span to another > type to interface with OS-specific time types (like time_t) if you're opting > for speed, portability and accuracy. Well, speaking from my experience, the OS-specific time types are hardly usable because of the OS services working with these types. The problem is not conversion, but the implementations, which *do* use these [broken] services. They might have a catastrophic accuracy. For example, under VxWorks we had to replace the AdaCore implementation of Ada.Real_Time with our own implementation. This stuff is inherently non-portable. But the interface of Ada.Real_Time is portable, so I see absolutely no point in replacing it with something OS-specific. It won't get either portability or accuracy. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de