[ECOS] how to print timestamp in ecos

Robert Brusa bob.brusa@gmail.com
Fri Apr 3 10:08:00 GMT 2009

On Fri, 03 Apr 2009 09:12:23 +0200, gaurang <gaurang.tamakuwala@yahoo.com>  

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

Date Time ? What sort of? Look at this:

	diag_printf("\n%s() of %s %s", __func__,  __DATE__, __TIME__);

The three arguments are strings that are generated during compilation of a  
module. So even after linking, each module "knows" when it was compiled.

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