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: a07f3367d7,61d8daec8bfa486e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: An Example for 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: <1fb06tjt2dy1y$.1tkafcv9oya2w.dlg@40tude.net> <8o61e2FkdvU1@mid.individual.net> <1jmysfv0ifrrj$.h84gfj1gv0ht.dlg@40tude.net> <8o6ndjFm6sU1@mid.individual.net> <4tsecsvlsdzx$.8w12tfj8af75.dlg@40tude.net> <8o9gtqFbuvU1@mid.individual.net> Date: Mon, 3 Jan 2011 09:50:08 +0100 Message-ID: NNTP-Posting-Date: 03 Jan 2011 09:50:04 CET NNTP-Posting-Host: 59b5f3c6.newsspool3.arcor-online.net X-Trace: DXC=[eWjIJT3m]<^cW`WBF>WQ[ On Sat, 01 Jan 2011 22:25:30 +0200, Niklas Holsti wrote: > Perhaps you mean that CPU_Time is unrelated to Ada.Real_Time.Time over > longer periods during which the task is sometimes executing, sometimes > not. I mean that 1. The corresponding clocks can be different. Ada cannot influence this. 2. The clocks are not synchronized, i.e. T1 on the Ada.Real_Time.Clock cannot be translated into T2 on the Ada.Execution_Time.Clock. > One of the differences between Ada.Real_Time.Time and > Ada.Execution_Time.CPU_Time is that the epoch for the former is not > specified in the RM. It follows that even if Ada.Real_Time.Time had a > visibly numeric value, its meaning would be unknown to the program. > > In contrast, the epoch for CPU_Time is specified in the RM: the creation > of the task, a point in real time known to the program. That does not define it either. An epoch cannot be defined otherwise than in terms of other clock. The task start time according to Ada.Real_Time.Time or Ada.Calendar.Time is unknown. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de