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-Thread: 103376,8da181ade72859cf X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: timeouts References: Date: Mon, 30 Aug 2004 08:37:34 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:7jk7RvtoZL2IdJKSzRpHgBvDbog= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1093819053 202.173.153.89 (30 Aug 2004 08:37:33 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.mel.connect.com.au!news.alphalink.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:3151 Date: 2004-08-30T08:37:34+10:00 List-Id: >>>>> "tmoran" == tmoran writes: tmoran> It isn't obvious? ;) tmoran> The original IBM PC had a timer running at 1.193182 MHz tmoran> (they used cheap timers built for TV sets). These days PC tmoran> descendants often use a small multiple of that rate, eg, tmoran> 3*1193182 ticks/sec, so 2**24 ticks takes 4.686968 tmoran> seconds. The chipset problem had to do with a 24 bit tmoran> overflow, and 4.6 seemed suspiciously close. Of course tmoran> the chipset problem ought to have been fixed in any tmoran> reasonably new hardware, so that may be a red herring... Good theory. Unfortunately, right now, on the same computer, it is every 2.1 seconds. In fact, it seems slow down the longer it is run. Need to verify this theory. Doesn't make a lot of sense. Oh, and it definitely seems to be the select statement. I put a call to Ada.Text_IO.Put_Line before the select statement, and immediately when responding to an event. The delay occurs in between. -- Brian May