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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c6128af70f6d02c8 X-Google-Attributes: gid103376,public From: Joel VanLaven Subject: Re: Timing things. Date: 1999/06/16 Message-ID: <37681210.EDF1C43F@acm.org>#1/1 X-Deja-AN: 490409674 Content-Transfer-Encoding: 7bit References: <3767E18A.1904F5AF@acm.org> <3767f26f.840466@news.pacbell.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 929567274 38.30.238.10 (Wed, 16 Jun 1999 16:07:54 CDT) Organization: FlashNet Communications, http://www.flash.net MIME-Version: 1.0 NNTP-Posting-Date: Wed, 16 Jun 1999 16:07:54 CDT Newsgroups: comp.lang.ada Date: 1999-06-16T00:00:00+00:00 List-Id: Tom Moran wrote: > Sounds like it's using the standard PC clock that tickes every 55 > milliseconds. You can get a different compiler, or a different OS or > machine, or make a direct OS call to QueryPerformanceCounter (sp?) Thanks alot. The OS call worked great, especially once I abandoned my abstract data type instincts and did unchecked conversion from the wacky win32 binding types to gnat's long_long_integer. > ada.real_time.microseconds(1))/100; ie, run the test long enough to > get multiple clock ticks, then divide the elapsed time by the number > of trials you used. A fine suggestion and the last resort I was avoiding. This is because of my particular assignment. I was told to time the build and the operations separately. And the number of operations wrt size of heap was having an effect, so, I would either have to let my results be skewed by higher operations to size ratio, swamp the operations runtime with copying of a stored starting heap, or increase size and operations, all of which either invalidate the results and/or modify the assignment. Certianly possible, but not desired. Luckily the day has been saved. Thank you again, -- Joel VanLaven