[ECOS] Re: how to print timestamp in ecos

John Dallaway john@dallaway.org.uk
Fri Apr 3 08:20:00 GMT 2009


gaurang wrote:

> I want display and store time and date in flash.So how can
> display timestamp in ecos.
> Any time api for time stamp.

You will need an eCos wallclock driver for your hardware platform. You
will also need to ensure that the Wallclock I/O package
(CYGPKG_IO_WALLCLOCK) and the ISO C date and time package
(CYGPKG_LIBC_TIME) are part of your eCos configuration. You can then
call the time() function within the eCos C library to obtain calendar time.

I hope this helps

John Dallaway

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list