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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: comp.lang.ada Subject: Re: how to analyze clock drift Date: Wed, 19 Nov 2014 03:37:21 +0100 Organization: Aioe.org NNTP Server Message-ID: <87a93n531a.fsf@debian.uxu> References: <87bno4gnuz.fsf@debian.uxu> NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:qIjUplHOS2oLpg8/JoDOgWYo8Cg= Mail-Copies-To: never Xref: number.nntp.giganews.com comp.lang.ada:190841 Date: 2014-11-19T03:37:21+01:00 List-Id: Simon Clubley writes: >> I have a long list of samples of clock readings. It >> "should" be periodical, by 1 ms, but of course it >> isn't. The data is in nanoseconds. >> > > How are you gathering the data? There is a C++ program. It uses the sleep_until function to control the "1 ms" period. Then time is dumped using other C++ methods. No, the isn't the correct time. That is the whole idea. It isn't correct, but in what ways is it incorrect - does it drift? does it average out? does it drift but evenly, i.e. the drift doesn't drift? etc. I want to answer such questions (and others) if possible with math/stat methods and a large set of data, but I'm not a star in science, I do tool programming, so I thought you can help me, and I can program, and it'll be interesting... :) Here is everything - including docs, even a man page: http://user.it.uu.se/~embe8573/hs-linux/ -- underground experts united