This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: how to print timestamp in ecos


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


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.
Robert


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


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