comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: Re: Fairly simple question about using time in Ada
Date: Thu, 04 Oct 2001 12:03:22 +0200
Date: 2001-10-04T12:03:22+02:00	[thread overview]
Message-ID: <3BBC33EA.8CD5CC50@icn.siemens.de> (raw)
In-Reply-To: 3bb5234f$0$9274$afc38c87@news.optusnet.com.au



Chris Vinall wrote:
> 
> I'm writing a program in which I need to be able to timestamp events and
> then later check how much real time has elapsed since that event occurred.
> It is essential that this timing operate to tenths of a second and
> hundredths of a second would be a lot better.
> 
> How do I go about doing this in Ada? My textbook mentioned something about
> Duration but was less than helpful.


Hi,

I did some tests with the "Calendar" package sometime ago. I found, that
while GNAT (on WinNT) has a pretty good accurcy, the ObjectAda that I
have (the free version), has a worse resolution. So I use some OS-calls
now. If you work on Windows, you can get the code from me.



  parent reply	other threads:[~2001-10-04 10:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-29  1:26 Fairly simple question about using time in Ada Chris Vinall
2001-09-29  2:33 ` James Rogers
2001-10-02  5:56   ` tmoran
2001-09-29 12:44 ` DuckE
2001-10-03 10:27   ` Petter Fryklund
2001-10-04 10:03 ` Alfred Hilscher [this message]
2001-10-04 17:56 ` R. Tim Coslet
2001-10-04 19:44   ` tmoran
replies disabled

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