This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Regd system current time
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Prabal Halder <prabalhalder at yahoo dot co dot in>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 20 Mar 2003 11:53:14 +0100
- Subject: Re: [ECOS] Regd system current time
- References: <20030320104536.89752.qmail@web8203.mail.in.yahoo.com>
On Thu, Mar 20, 2003 at 10:45:36AM +0000, Prabal Halder wrote:
>
> We are using eCos 1.3.1.
Not recommended. Update to anoncvs or 2.0b1.
> Here we want to get the current time of the system.
> For that there is a function : cyg_tick_count_t
> cyg_current_time( void ). But this function returns
> value in terms of ticks where 1 tick = 10ms.
>
> My question is :
>
> Is there any function for system current time which
> returns value in terms of 'msec'.
Nope.
You can either / 10 or use HAL_CLOCK_READ() with some post processing.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss