comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: need ada timer routine
Date: Tue, 04 Sep 2001 20:24:04 GMT
Date: 2001-09-04T20:24:04+00:00	[thread overview]
Message-ID: <ELal7.3766$4z.11914@www.newsranger.com> (raw)
In-Reply-To: 9n2rbg$4qj$1@zeus.orl.lmco.com

In article <9n2rbg$4qj$1@zeus.orl.lmco.com>, mop says...
>i need a routine to pass serial data at a 20 hertz rate
>
>For my Visual C I did "m_timer = SetTimer(1, 50, NULL);"  This now calls a
>built in API OnTimer(UINT nIDEvent) every 50 millisec.   Need something like
>this in Ada.

The Right Way to do this kind of thing in Ada is to create a task that gets the
time, then repeatedly adds 50 ms to it and does a "delay until" on the result.

Out of curiosity, is this for a class at UCF? I got my master's from there, but
they didn't do a lot of Ada at the time. I tried to convince one prof to move
his OS course from concurrent C to Ada (the only platform Concurrent C supported
was an obsolete SunOS box kept for just that purpose), but I don't think I had
much success.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      parent reply	other threads:[~2001-09-04 20:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-04 15:18 need ada timer routine mop
2001-09-04 20:03 ` James Rogers
2001-09-04 21:51   ` tmoran
2001-09-04 20:24 ` Ted Dennison [this message]
replies disabled

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