comp.lang.ada
 help / color / mirror / Atom feed
From: "Pascal Obry" <p.obry@der.edf.fr>
Subject: Re: Timing things.
Date: 1999/06/17
Date: 1999-06-17T00:00:00+00:00	[thread overview]
Message-ID: <7kaalj$j9$1@clnews.edf.fr> (raw)
In-Reply-To: 3767E18A.1904F5AF@acm.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 861 bytes --]


Joel VanLaven <jvanlaven@acm.org> a �crit dans le message :
3767E18A.1904F5AF@acm.org...
> I wrote a program as an assignment for an algorithms class in
> Ada95 that builds and operates on a variety of double-ended priority
> queues.  I am supposed to time certain operations (the build then the
> sum of the subsequent iterations of operations).  I am trying to use
> ada.real_time (rather than using some OS feature).  Problem is on my
> Windows98 PC using Gnat 3.11p I seem to be getting completely bogus and
> useless times. (granularity of at best 1/100 of a second though it looks
> more like 1/10 of a second)
>

This is true in GNAT 3.11 where the clock is implemented with standard
Windows
timing function.

In GNAT 3.12 the clock is implemented using a high resolution counter, this
gives the clock a resolution of about 1 micro-sec.

Pascal.






      parent reply	other threads:[~1999-06-17  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-16  0:00 Timing things Joel VanLaven
1999-06-16  0:00 ` Tom Moran
1999-06-16  0:00   ` Joel VanLaven
1999-06-17  0:00 ` Pascal Obry [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox