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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.134.225 with SMTP id pn1mr15684745igb.6.1416861054310; Mon, 24 Nov 2014 12:30:54 -0800 (PST) X-Received: by 10.140.32.74 with SMTP id g68mr28722qgg.22.1416861054029; Mon, 24 Nov 2014 12:30:54 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!uq10no3683449igb.0!news-out.google.com!w7ni319qay.0!nntp.google.com!s7no1620980qap.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 24 Nov 2014 12:30:53 -0800 (PST) In-Reply-To: <119jk3v83ilwp$.94ppz78taoc4.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.111.125.244; posting-account=Ies7ywoAAACcdHZMiIRy0M84lcJvfxwg NNTP-Posting-Host: 50.111.125.244 References: <188uppnlnvqgq$.1kjz3jnhjxqji.dlg@40tude.net> <87fvdd38qi.fsf@debian.uxu> <87a93l35dm.fsf@debian.uxu> <9t7t6al8bmifd9krh6koiegttgsvcovadg@4ax.com> <87d28h1cj9.fsf@debian.uxu> <3apu6ap126abi6oalch9vpre20hjij2uon@4ax.com> <87k32oi7r8.fsf@debian.uxu> <98h17atrhtl9kitthjf8ukt1f7rk1ribvc@4ax.com> <8761e54qt2.fsf@debian.uxu> <119jk3v83ilwp$.94ppz78taoc4.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: how to analyze clock drift From: brbarkstrom@gmail.com Injection-Date: Mon, 24 Nov 2014 20:30:54 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 4616 X-Received-Body-CRC: 400916291 Xref: news.eternal-september.org comp.lang.ada:23699 Date: 2014-11-24T12:30:53-08:00 List-Id: On Monday, November 24, 2014 1:28:59 PM UTC-5, Dmitry A. Kazakov wrote: > On Mon, 24 Nov 2014 12:24:15 -0500, Dennis Lee Bieber wrote: > > > On Mon, 24 Nov 2014 09:44:39 +0100, "Dmitry A. Kazakov" > > declaimed the following: > > > >>Setting THREAD_PRIORITY_TIME_CRITICAL blocks practically everything (except > >>for drivers). > >> > >>However I doubt that background processes or services are the problem when > >>waiting for 10 or 5ms > >> > > Many moons ago I had a task using a GFE W98 (!) laptop [needed to be > > W9x to allow direct access to the parallel port]. > > Windows 98 cannot be compared with NT. > > > Wasn't a timer situation > > -- it was more a busy wait since the main timing control was obtained from > > an external (1KHz as I recall) clock to a signal pin on the parallel port. > > The task required writing 6-bits on each clock transition (I forget if > > L->H, or H->L) -- the 6-bits representing three RS-422-style balanced data > > lines... > > You should have written a proper driver for this with interrupts and > deferred I/O. > > BTW, TIME_CRITICAL blocks even deferred I/O processing, if I correctly > remember. Windows internals are not that bad as painted. > > -- > Regards, > Dmitry A. Kazakov If you want to get time standard information, you can start with the very short background piece from Wikipedia: http://en.wikipedia.org/wiki/Standard_time_and_frequency_signal_service The US Government Agency that maintains time standards is a division within the National Institute of Standards and Technology (NIST). They broadcast time signals from WWV. The Web page that provides the entry to this information is http://www.nist.gov/pml/div688/grp40/wwv.cfm The following page gives suggestions on how to access time signals from a computer connected to the Internet: http://www.nist.gov/pml/div688/grp40/its.cfm The following pdf has information on computer time-keeping, although I'm not sure what its date is. Even so, this may be useful reading. http://tf.nist.gov/service/pdf/computertime.pdf A standard reference on time and related astronomical matters is Seidelmann, P. K., 2006: Explanatory Supplement to the Astronomical Almanac: Completely Revised and Rewritten, University Science Books, Sausalito, CA. If you want to look into algorithms with a modern (Bayesian) flavor, you might look at Pole, A., West, M., and Harriaon, J., 1994: Applied Bayesian Forecasting and Time Series Analysis, Chapman & Hall/CRC, Boca Raton, FL This is pretty readable, even though it may seem a bit old. There's an interesting (and probably useful) piece of DOS software that might be fun to update if you can get copyright permission and have some spare time. If your taste runs to much fancier math, there's a whole special interest group of the Society of Industrial and Applied Mathematics (SIAM) that's devoted to Uncertainty Quantification. Sorry to be a bit late in responding. Bruce B.