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: 103376,d1f23f0bd3971bec X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!news-FFM2.ecrc.net!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Timing Block of GNAT code in milliseconds Date: 28 Apr 2005 21:26:00 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1114090119.383842.20950@l41g2000cwc.googlegroups.com> <1KydnfadqcK30fXfRVn-qw@comcast.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1114720086 22108 62.49.19.209 (28 Apr 2005 20:28:06 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 28 Apr 2005 20:28:06 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:10785 Date: 2005-04-28T21:26:00+01:00 List-Id: "Dmitry A. Kazakov" 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!) -- Simon Wright 100% Ada, no bugs.