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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8311a3a7edd715 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-12 13:21:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!bullseye.news.demon.net!news.demon.co.uk!demon!diphi.demon.co.uk!jpt From: JP Thornley Newsgroups: comp.lang.ada Subject: Re: Using "delay until" in real-time Date: Tue, 12 Dec 2000 21:18:28 +0000 Message-ID: References: <915jl7$jt5$1@nnrp1.deja.com> NNTP-Posting-Host: diphi.demon.co.uk X-NNTP-Posting-Host: diphi.demon.co.uk:158.152.212.133 X-Trace: news.demon.co.uk 976656010 nnrp-10:13131 NO-IDENT diphi.demon.co.uk:158.152.212.133 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 4.02 S Xref: supernews.google.com comp.lang.ada:3015 Date: 2000-12-12T21:18:28+00:00 List-Id: In article <915jl7$jt5$1@nnrp1.deja.com>, Ted Dennison writes >1/60 works out to about 0.016(6-repeating). That can't be accurately >represented in an IEEE floating-point register. So what we get is >something like 0.016667 (forgive me if I'm rounding the wrong digit). Why not use 3 'minor' cycles in a 'major' cycle. The major cycle then has an exact delay of 0.05, and the minor cycles are offset by 0.016667 and 0.033333 within the major cycle. Cheers, Phil Thornley -- JP Thornley