This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: how to print timestamp in ecos
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: gaurang <gaurang dot tamakuwala at yahoo dot com>, ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 03 Apr 2009 12:07:48 +0200
- Subject: Re: [ECOS] how to print timestamp in ecos
- References: <22863168.post@talk.nabble.com>
- Reply-to: Bob dot Brusa at gmail dot com
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