comp.lang.ada
 help / color / mirror / Atom feed
From: fmanning@my-dejanews.com
Subject: Delay guarantees
Date: 1999/05/20
Date: 1999-05-20T00:00:00+00:00	[thread overview]
Message-ID: <7i1m4b$cb1$1@nnrp1.deja.com> (raw)

If you have a delay relative statement, does the delay argument
guarantee a minimum delay? For example:

   Delay 0.5;

Does this guarantee a minimum 500 ms delay?

According to the Ada 95 style guide at adaic, "The Ada language
definition only guarantees that the delay time is a minimum." The guide
also warns against depending on achieving a particular delay, but to
the extent that a delay is achievable, the implication seems to be that
a minimum is guaranteed.

But in the LRM, in section D.9 on Delay Accuracy, the only applicable
requirement I can find is in paragraph 3. To paraphrase -- if you read
the clock before and after a delay statement, the time difference must
be equal or greater than the delay argument.

Suppose the delay argument is equivalent to a single clock tick, and
the delay is executed just before a tick? Can delay return just after
the tick? If so, the actual time delay could be essentially 0.

-- Frank Manning
-- NetMedia, Inc.


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---




             reply	other threads:[~1999-05-20  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-20  0:00 fmanning [this message]
1999-05-20  0:00 ` Delay guarantees David C. Hoos, Sr.
  -- strict thread matches above, loose matches on Subject: below --
1999-05-24  0:00 Robert I. Eachus
1999-05-25  0:00 ` Bryce Bardin
1999-05-28  0:00   ` Robert I. Eachus
replies disabled

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