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!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!noris.net!newsfeed.arcor.de!newsspool2.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: Thu, 16 Dec 2010 09:45:54 +0100 Message-ID: <1wmsukf0wglz3$.odnzonrpayly.dlg@40tude.net> NNTP-Posting-Date: 16 Dec 2010 09:45:54 CET NNTP-Posting-Host: c280b047.newsspool3.arcor-online.net X-Trace: DXC=gTQRHhAYZ8]cHPTNZh_e7QMcF=Q^Z^V3X4Fo<]lROoRQ8kF On Wed, 15 Dec 2010 16:05:16 -0600, Randy Brukardt wrote: > I think you are missing the point of CPU_Time. It is an abstract > representation of some underlying counter. There is no requirement that this > counter have any particular value -- in particular it is not necessarily > zero when a task is created. So the only operations that are meaningful on a > value of type CPU_Time are comparisons and differences. Arguably, CPU_Time > is misnamed, because it is *not* some sort of time type. Any computer time is a representation of some counter. I think the point is CPU_Time is not a real time, i.e. a time (actually the process driving the corresponding counter) related to what people used to call "time" in the external world. CPU_Time is what is usually called "simulation time." One could use Duration or Time_Span in place of CPU_Time, but the concern is that on some architectures, with multiple time sources, this would introduce an additional inaccuracy. Another argument against it is that there could be no fair translation from the CPU usage counter to Duration/Time_Span (which is the case for Windows). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de