[ECOS] # ticks per second?

Andreas.Karlsson@combitechsystems.com Andreas.Karlsson@combitechsystems.com
Wed Aug 30 07:44:00 GMT 2000


Hi,



Is this rows correct to obtain the number of ticks per second? I want some

timers to go off after some seconds.

/Andreas



cyg_resolution_t clock_res;

cyg_handle_t clock_handle;

cyg_uint32 sec;



clock_handle=cyg_real_time_clock();

clock_res=cyg_clock_get_resolution(clock_handle); 

sec=(clock_res.divisor/clock_res.dividend)*1000000000; //dividend/divisor?



More information about the Ecos-discuss mailing list