This is the mail archive of the ecos-discuss@sources.redhat.com 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: Regd system current time


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


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