This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: time() function
- To: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Subject: Re: [ECOS] time() function
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Mon, 22 May 2000 14:54:39 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <008d01bfc3e5$9f454f70$7601a8c0@borg.int.spb.ru>
"Boris V. Guzhov" wrote:
>
> Hi all!
>
> I want to use the time() function (my target is pc386).
> Usually in other OS's the time() function returns the time since the Epoch,
> measured in seconds. When I call the time() in eCos, it returns the time
> since the my program start. Why?
No-one has written a "wallclock" driver for the i386-pc target - instead it
is using an emulated one. Have a look at devs/wallclock in the eCos sources
for the existing ports - currently to the ARM AEB-1, Hitachi SH-EDK and
Intel StrongARM EBSA285 boards.
It wouldn't be that much effort to write one yourself (and contribute it
back!), it's just that no-one has done it. If you did want to do that, you
should start from the sources in the anonymous CVS repository as the file
layout has changed since 1.3.1.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault