This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: time() function


"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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]