This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: ecos and gettimeofday()
- From: Alexander Neundorf <neundorf at kde dot org>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 4 Oct 2005 19:26:26 +0200
- Subject: Re: [ECOS] ecos and gettimeofday()
- References: <200509292331.26058.neundorf@kde.org> <87achvdsn2.fsf@p4.48ers.dk>
- Reply-to: neundorf at kde dot org
Hi,
On Friday 30 September 2005 07:36, Peter Korsgaard wrote:
> >>>>> "Alexander" == Alexander Neundorf <neundorf@kde.org> writes:
>
> Hi,
>
> Alexander> If this is not the right approach, what do you suggest
> Alexander> instead ?
>
> Johanthan's reply to my patch was pretty clear about that. Basically
> you need to add a include line to the isoinfra package which can be
> set in CDL, and add the include file to the posix package.
>
> I unfortunately haven't had time to do this - if anyone wants to step
> up to the task, please do!
>
> Another item related to this is using HAL_CLOCK_READ in gettimeofday
> so we can get sub-timer tick accuracy.
So it seems gettimeofday() might actually belong into the POSIX compat.
package. This gives the problem that just to get gettimeofday() the whole
POSIX compat package has to included, including pthreads, main() and a bunch
of other things. This seems like a lot of overhead just for gettimeofday().
Do you have a better idea ?
Bye
Alex
--
Work: alexander.neundorf@jenoptik.com - http://www.jenoptik-los.de
Home: neundorf@kde.org - http://www.kde.org
alex@neundorf.net - http://www.neundorf.net
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss