Re: Real Time IO routines
- From: Anh Vo <anhvofrcaus@xxxxxxxxx>
- Date: Fri, 26 Oct 2007 21:54:38 -0000
On Oct 26, 2:14 pm, andrew <andrew.carr...@xxxxxxxxxxx> >
Something seems to be wrong though. In my program I am basiclly
doing:
start := clock;
--I run my algorithm here
finish := clock;
ada.Text_IO.put_line("time = " & duration'image(to_duration(finish -
start)));
the output is always time = 0.000000000. I know it had to take some
time because it takes about 10 seconds for the program to reach that
point in the code. Overflow maybe?- Hide quoted text -
In that case use the conversion as shown bellow.
Put_Line (Duration'Image (To_Duration (finish - start)));
Check the Ada.Real_Time package specification you will see all
operators / operations used above.
AV
.
- References:
- Real Time IO routines
- From: andrew
- Re: Real Time IO routines
- From: Anh Vo
- Re: Real Time IO routines
- From: andrew
- Re: Real Time IO routines
- From: Anh Vo
- Re: Real Time IO routines
- From: andrew
- Re: Real Time IO routines
- From: Ludovic Brenta
- Re: Real Time IO routines
- From: andrew
- Re: Real Time IO routines
- From: Dmitry A. Kazakov
- Re: Real Time IO routines
- From: andrew
- Real Time IO routines
- Prev by Date: Re: Real Time IO routines
- Next by Date: Re: Real Time IO routines
- Previous by thread: Re: Real Time IO routines
- Next by thread: Re: Real Time IO routines
- Index(es):
Relevant Pages
|