comp.lang.ada
 help / color / mirror / Atom feed
From: Jano <nono@celes.unizar.es>
Subject: Re: milliseconds and delay until
Date: Wed, 11 Jun 2003 20:46:05 +0200
Date: 2003-06-11T20:46:05+02:00	[thread overview]
Message-ID: <MPG.195197589c4fd46e98971a@News.CIS.DFN.DE> (raw)
In-Reply-To: bc7smt$357$04$1@news.t-online.com

Thomas Bruns dice...
> Hello
> 
> how can I handle the until delay statement, too do this: ????
> 
> 
> with ADA.Calendar; use ADA.Calendar;
> 
> procedure ....
> 
> MS : INTEGER; --milliseconds
> 
> begin
> MS:= INTEGER(FLOAT(seconds(clock)) * 1000);
> 
> MS := MS + 100;
> 
> delay until MS; ---???? it is wrong :-( it must be a time type :-( but I
>         -- need the clock from a fixed time and add some milliseconds... 
> --and then the until delay statement....How can I handle this???

Why not use better a Time type from start?

Next : Time := Clock;

Next := Next + 0.1;

delay until Next;

-- 
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------



  reply	other threads:[~2003-06-11 18:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 18:31 milliseconds and delay until Thomas Bruns
2003-06-11 18:46 ` Jano [this message]
2003-06-11 18:58   ` Thomas Bruns
2003-06-11 19:29     ` Jano
2003-06-11 19:49 ` Simon Wright
2003-06-11 20:29   ` tmoran
2003-06-12  6:20   ` Dmitry A. Kazakov
2003-06-11 19:59 ` Frank J. Lhota
2003-06-12  3:06 ` Steve
2003-06-12 20:26   ` Simon Wright
2003-06-12 21:41     ` Martin Dowie
2003-06-14  6:04       ` Simon Wright
replies disabled

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