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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8c564a80b820db35 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.201.129 with SMTP id ka1mr11377586pbc.6.1331062828020; Tue, 06 Mar 2012 11:40:28 -0800 (PST) Path: h9ni46961pbe.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Any leap year issues caused by Ada yesterday? Date: Tue, 6 Mar 2012 20:40:23 +0100 Organization: cbb software GmbH Message-ID: <77jjfhr1yfxo.pivspzekvere$.dlg@40tude.net> References: <4f4f746a$0$6565$9b4e6d93@newsspool3.arcor-online.net> <20608866.730.1330963171058.JavaMail.geo-discussion-forums@ynbq18> <1t8v4akrmapkl.1xwfi9yxtw2ji$.dlg@40tude.net> <18ghv3yeh1a1k$.1bjwdaps59rt3$.dlg@40tude.net> <9778287.445.1331060917464.JavaMail.geo-discussion-forums@ynes7> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: /bBpnkeEm9kG1v1C1CjDFw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-03-06T20:40:23+01:00 List-Id: On Tue, 6 Mar 2012 11:08:37 -0800 (PST), Shark8 wrote: > On Tuesday, March 6, 2012 11:37:35 AM UTC-6, Dmitry A. Kazakov wrote: >> >> If the sources of the TSC and of the system clock are different, then there >> is a systematic error. I suppose this is the major reason why it did not >> work under VxWorks. The system time must be derived from the same quartz. >> Otherwise you have to compensate the deviation, which could well be as big >> as 5 microseconds per second. > > Really? I thought the whole point of using Quartz crystals was because > they vibrate at a precise rate; or is the problem analogous to the "beats" > that you hear when two musical instruments* are slightly out of tune? I am not a physicist, but we actually measured TSC of two identical computers (same motherboard, processor, manufacturer etc). The deviation was microseconds per second. > (*Guitar comes immediately to mind; especially as it uses that as part of the tuning process.) In that analogy it is like two strings having different tension or diameter. But what I meant was not oscillators of almost same period, but rather ones having absolutely unrelated periods, e.g. the BIOS clock and the TSC. x86 has many clocks spread in abundance all over the motherboard. They are physically different, unsynchronized etc. OS designers carefully select the least accurate and most unreliable of them for the time source... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de