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.220.229 with SMTP id pz5mr6383997pbc.5.1331032607208; Tue, 06 Mar 2012 03:16:47 -0800 (PST) Path: h9ni45614pbe.0!nntp.google.com!news2.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 12:16:47 +0100 Organization: cbb software GmbH Message-ID: 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> <4f55ec33$0$7613$9b4e6d93@newsspool1.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.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-06T12:16:47+01:00 List-Id: On Tue, 06 Mar 2012 11:51:31 +0100, Georg Bauhaus wrote: > On 06.03.12 11:07, Dmitry A. Kazakov wrote: >> The actual problem is to get the multiplier, the BIOS time, and keeping the >> TSC synchronized with the system clock. > > Why isn't there a chip that does just one thing: > signal regularly, at sufficiently high frequency, > and totally independent of its electrical surroundings, > autonomous, > unaffected by software, > and having its own power supply? > Ping - ping - ping - ping - ... > Into some memory location, maybe? > > Or is there? The TSC is, except for being off without power. The problem is to figure out what year is 764223417. Counter is not yet a clock. A clock ultimately gives something like 764223417ns since 1 January 2011 00:00 UTC or a method to convert a number into a date and back. Not a trivial problem, even when ignoring the relativity theory... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de