This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: _ftime function
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Nelly PISON <nelly dot pison at elios-informatique dot fr>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 17 May 2005 04:38:08 -0600
- Subject: Re: [ECOS] _ftime function
- References: <4289C472.4080904@elios-informatique.fr>
On Tue, 2005-05-17 at 12:16 +0200, Nelly PISON wrote:
> Hello,
>
> We're working on a project and testing it on the Linux synthetic target.
> We need to read the absolute time in ms and we searh for the fonction
> _ftime and structure _timeb that are used in the snmp package.
> But we have undefined reference error then . We search _ftime in all the
> packages and don't founf it!!
> How can we do to have this function defined?
'ftime()' is obsolete and not implemented by eCos. The reference in the
SNMP package is unused.
Try looking at 'gettimeofday()'. One example is in:
packages/net/ppp/current/src/sys-ecos.c
Note: unless your target implements a 'wallclock' device and you somehow
set the time, eCos will not have any notion of the absolute time, only
how long it has been running.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss