TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: Stephen Leake <[log in to unmask]>
Date: Wed, 15 Nov 2000 17:16:48 -0500
Reply-To: Jesse Farmer <[log in to unmask]>
From: Jesse Farmer <[log in to unmask]>
X-cc: Stephane Richard <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Parts/Attachments: text/plain (33 lines)
At 03:40 PM 11/15/00 -0500, you wrote:

>With these changes, I get as output:
>
>Time Difference:  1.722298023  For one whole note
>Time Difference:  1.721935966  For 2 Half note
>Time Difference:  1.722189909  For 4 Quarter note Delay
>Time Difference:  1.722186557  For 8 8th note Delay
>Time Difference:  1.722149680  For 16 16th note Delay
>Time Difference:  1.722237681  For 32 32th note Delay
>Time Difference:  6.859441393  For 64 64th note Delay
>Time Difference:  13.719359662  For 128 128th note Delay
>
>On a Pentium Windows NT 4.0.
>
>64th and 128th notes are too fine for this clock, as you noted in your
>code.
>
>
>    Test (64, Delta_Sixteenth_Note, "For 64 64th note Delay");
>    Test (128, Delta_Sixteenth_Note, "For 128 128th note Delay");


Thanks Stephen for that code, which was very helpful.  By correcting two
errors you made in the preceding code, I have now gotten the results I
wanted.  It seems that the Ada realtime clock IS capable of timing those
intervals.  In the lines above, Delta_Sixteenth_Note needed to be replaced
by Delta_SixtyFourth_Note and Delta_128th_Note.

Now it seems we have a viable timer.
Thanks again.
-Jesse

ATOM RSS1 RSS2