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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: how to analyze clock drift Date: Wed, 19 Nov 2014 02:10:36 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <87bno4gnuz.fsf@debian.uxu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Wed, 19 Nov 2014 02:10:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="85982c8ebc9a20b82d6273301f800721"; logging-data="23357"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P0nGDOaM39IOYTw4cNqiGd9hTfz8oHhU=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:J+xmCNmhj+vsaNkFDfAi9S7PoI4= Xref: news.eternal-september.org comp.lang.ada:23533 Date: 2014-11-19T02:10:36+00:00 List-Id: On 2014-11-18, Emanuel Berg wrote: > 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 ? Is the data being stored in a hardware register as the result of some trigger until it can be collected by your program or is your collector directly gathering the clock reading ? IOW, how do you know the same amount of _actual_ real world time has elapsed between the clock being sampled ? What's the hardware and software environment ? Is your code running on bare metal ? If you are gathering the data directly, instead of via some hardware buffer, are any instruction/data caches enabled on your processor ? > Anyone knows how I can apply some math/stat method to > find out the average drift, and/or if the drift will > average out, or just about any conclusions you can get > out of the material? > Before you get that far, you need to make sure you are gathering what you think you are gathering. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world