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!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 25 Apr 2005 17:54:12 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1114090119.383842.20950@l41g2000cwc.googlegroups.com> <1KydnfadqcK30fXfRVn-qw@comcast.com> Subject: Re: Timing Block of GNAT code in milliseconds Date: Mon, 25 Apr 2005 17:56:32 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-a6VoEbtunj0EOHKyD1snCq/4m+kxHCGXUJt8v33ScUemUwYZMBE8rJn08/5wfmEOlx9k36N8jN1JLOt!sm5sZ0dG+VLptpoXGtkeCXZMyppO09WNOkGO9MnnGUPj1OH7Y8QykKbI9Ha6TT+25NoUFrmiQfnx X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10704 Date: 2005-04-25T17:56:32-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:ei2meksw8if6.11hcrgpc1osq5$.dlg@40tude.net... > On 24 Apr 2005 19:57:24 +0100, Simon Wright wrote: ... > > I don't know about Windows NT. > > 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. They both use the Window's performance counter; the code is shared as I recall. The base time is determined from the usual Windows system calls, and the performance counter is used to provide an offset. But the performance counter can jump - just that it does so forward. GNAT has a workaround for that, but of course you lose some accuracy if it has to use the workaround. Randy.