Re: Real Time IO routines



On Oct 26, 1:36 pm, Ludovic Brenta <ludo...@xxxxxxxxxxxxxxxxxx> wrote:
andrew writes:
Time_Unit is defined as a constant := 10#1.0#E-9, is Time_Unit then
a "real literal"? How can I convert a "real literal" to a scalar
type (maybe that's a contradiction?)?

Real literals are of the type universal_real which (a) is scalar and
(b) converts implicitly to any other floating-point type. Does that
answer your question?

--
Ludovic Brenta.

To Ludovic: Ahh, so if I had to define a universal_real I could
output it using something like integer'image(it)?

To AV: I don't really know why it's necessary yet; sometimes my
subconcious mind works faster than my concious mind and I just have to
go with it. I can say though that:

-- Time and Time_Span are represented in 64-bit Duration value in
-- in nanoseconds. For example, 1 second and 1 nanosecond is
-- represented as the stored integer 1_000_000_001.

So if a duration is represented as the stored INTEGER ... then I could
maybe use integer'image(duration), maybe?

what does this mean: type DURATION is delta implementation_defined
range implementation_defined;?
Is delta? what's delta?


.