comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Timing Block of GNAT code in milliseconds
Date: Fri, 29 Apr 2005 10:11:03 +0200
Date: 2005-04-29T10:11:04+02:00	[thread overview]
Message-ID: <10m95m5yelieq$.kj1rktb792s3.dlg@40tude.net> (raw)
In-Reply-To: x7v4qdq3axz.fsf@smaug.pushface.org

On 28 Apr 2005 21:26:00 +0100, Simon Wright wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> I presume Real_Time uses Windows' performance counter which never
>> jumps.  But I have no idea how Calendar behaves, especially in
>> presence of some external time synchronization software like NTP.
>> 
>> Alas, both clock models are quite useless in a distributed
>> environment.
> 
> I think that's going a bit far -- it has to depend what your
> requirements are!
> 
> We are running on plain VxWorks and need millisecond sync over our
> local network. If GNAT separated Real_Time from Calendar we could
> probably have used Calendar; as it is we have our own similar package
> which manages an offset from Calendar.
> 
> Any requirement much finer than millisecond sync is going to need
> something more appropriate than plain old ethernet with a plain old
> network stack (which takes about 150 us to traverse on this hardware
> in the best of conditions!)

Neither clock is usable in a WAN.

We need time stamps synchronized across the network. The accuracy of
synchronization is the second problem. The first problem is that the very
idea of synchronized time stamps cannot be expressed in Ada terms. There is
no portable way to get say UTC from either Calendar or Real_Time, or to
convert UTC to them.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2005-04-29  8:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 13:28 Timing Block of GNAT code in milliseconds markp
2005-04-21 18:00 ` tmoran
2005-04-21 18:53   ` markp
2005-04-21 19:40     ` Marc A. Criley
2005-04-21 19:44     ` Simon Wright
2005-04-22  1:00   ` Steve
2005-04-23  5:39     ` Simon Wright
2005-04-23 17:49       ` Steve
2005-04-24 18:57         ` Simon Wright
2005-04-24 20:05           ` Dmitry A. Kazakov
2005-04-25 22:56             ` Randy Brukardt
2005-04-28 20:26             ` Simon Wright
2005-04-29  8:11               ` Dmitry A. Kazakov [this message]
2005-04-29 18:25                 ` tmoran
2005-04-29 19:19                   ` Dmitry A. Kazakov
2005-04-29 20:24                     ` tmoran
2005-04-30  9:47                       ` Dmitry A. Kazakov
2005-04-29 20:52                 ` Randy Brukardt
2005-04-30 10:02                   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox