us_Timer in TimeStamp_(re)

Tue, 28 Oct 97 07:03:11 -0400


On Mon, 27 Oct 1997 16:47:56 +0100 (MET), Peter Gerwinski wrote:

>According to Thomas Tan:
>> Are you guys going to implement us_Timer field of TimeStamps soon?
>
>If you tell us how to do that in a portable way - at once!  ;-)

Well the proposal in the GPC docs also adds a TimerValid field, just
set that to False if the system doesn't support gettimeofday(), which
is already checked for in rts-time.c.  gettimeofday() should be
available for any system that supports BSD and/or glibc library calls. 
Other systems could provide their own calls in #ifdef blocks if they
want the feature.  I just don't see why 100% portability is important
when you already have a field that tells the programmer if he can trust
the results to be valid.  

-Kevin
--
Kevin A. Foss   ---   kfoss@mint.net
--


Kevin A. Foss (kfoss@mint.net)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es