comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Timing Block of GNAT code in milliseconds
Date: 23 Apr 2005 06:39:20 +0100
Date: 2005-04-23T06:39:20+01:00	[thread overview]
Message-ID: <x7vsm1i2gs7.fsf@smaug.pushface.org> (raw)
In-Reply-To: 1KydnfadqcK30fXfRVn-qw@comcast.com

"Steve" <nospam_steved94@comcast.net> writes:

> I tend to think of the Real_Time package as the one to use when you
> are timing events and the Calendar package as the one to use when
> you don't care about precise timing and want the time of day for
> reporting, etc.

It used to be the case with GNAT that there was an amazing similarity
between these two clocks! Looking on 5.02a1, on a first glance it
seems that Real_Time is derived as follows (the first two letters are
the encoding in the distribution, eg if building on NT the file
s-taprop.adb is copied from 5wtaprop.adb).

1s VxWorks/Cert taprop uses tickGet.

56 LynxOS taprop uses clock_gettime.

5a DEC Unix taprop uses clock_gettime.

5f IRIX pthread taprop uses clock_gettime.

5g IRIX athread taprop uses gettimeofday.

5h HP-UX DCE taprop uses clock_gettime.

5i GNU/LinuxThreads taprop uses getttimeofday.

5n Non-tasking taprop returns 0.0.

5o OS/2 taprop uses osprim which is the same as its Clock which is its
system clock.

5p OpenNT, Dec Unix, SCO taprop use osprim which is the same as its
Clock which uses gettimeofday.

5s Solaris taprop uses osprim which is the same as its Clock which
uses gettimeofday.

5v OpenVMS/Alpha taprop uses osprim which is the same as its clock
which uses the system clock.

5w NT taprop uses osprim which uses the performance counter.

5z VxWorks taprop uses clock_gettime.

7s 'POSIX-like' taprop uses clock_gettime.

-- 
Simon Wright                               100% Ada, no bugs.



  reply	other threads:[~2005-04-23  5:39 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 13:28 Timing Block of GNAT code in milliseconds markp
2005-04-21 18:00 ` tmoran
2005-04-21 18:53   ` markp
2005-04-21 19:40     ` Marc A. Criley
2005-04-21 19:44     ` Simon Wright
2005-04-22  1:00   ` Steve
2005-04-23  5:39     ` Simon Wright [this message]
2005-04-23 17:49       ` Steve
2005-04-24 18:57         ` Simon Wright
2005-04-24 20:05           ` Dmitry A. Kazakov
2005-04-25 22:56             ` Randy Brukardt
2005-04-28 20:26             ` Simon Wright
2005-04-29  8:11               ` Dmitry A. Kazakov
2005-04-29 18:25                 ` tmoran
2005-04-29 19:19                   ` Dmitry A. Kazakov
2005-04-29 20:24                     ` tmoran
2005-04-30  9:47                       ` Dmitry A. Kazakov
2005-04-29 20:52                 ` Randy Brukardt
2005-04-30 10:02                   ` Dmitry A. Kazakov
replies disabled

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