comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Marble Clock
Date: Wed, 03 Apr 2013 10:14:07 +0100
Date: 2013-04-03T10:14:07+01:00	[thread overview]
Message-ID: <lyobdwgen4.fsf@pushface.org> (raw)
In-Reply-To: b3a57b60-3f54-4be7-ae4a-364914b8b827@googlegroups.com

Eryndlia Mavourneen <eryndlia@gmail.com> writes:

> On Tuesday, April 2, 2013 2:46:10 PM UTC-5, gattamaneni abhiram wrote:

>> Do I need to use timer functions in the program to depict the changes
>> in the places of the marbles in different trays?
>
> I believe that would be the simpler way to do it.  Of course, you
> always can simulate the materials and workmanship of an actual clock
> with masses, gravitational acceleration, etc.  :-)
>
> Note that the non-realtime timer in Ada is the "delay" statement:
> "delay 3.1", for example, will delay for 3.1 seconds.

You (gattameini) definitely should *not* use more than one timer
function (when_to_run := when_to_run + 1.0; delay until when_to_run;),
for when the next marble is to enter the top tray.

IRL there will be a finite delay for the mechanism to click through any
carries that may be needed, but I very much doubt you're required to
simulate that.


BTW, people, did you notice how I trimmed the quoted part of this so
that it only contains the bit I'm actually replying to? You seem to be
Google Groups users, so you probably don't notice what a complete pig's
ear GG makes of quoting!!!



  reply	other threads:[~2013-04-03  9:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02  0:09 Marble Clock gattamaneni abhiram
2013-04-02 12:02 ` John B. Matthews
2013-04-02 19:46   ` gattamaneni abhiram
2013-04-02 19:54     ` Eryndlia Mavourneen
2013-04-03  9:14       ` Simon Wright [this message]
2013-04-03 12:45         ` Eryndlia Mavourneen
2013-04-03 16:53         ` Simon Wright
2013-04-12 22:28         ` gattamaneni abhiram
2013-04-13  5:51           ` Simon Wright
2013-04-13 19:04           ` Dennis Lee Bieber
2013-04-03 11:52     ` John B. Matthews
2013-04-03  7:44 ` Mike H
replies disabled

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