[ECOS] Regd system current time

Andrew Lunn andrew.lunn@ascom.ch
Thu Mar 20 11:00:00 GMT 2003


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



More information about the Ecos-discuss mailing list