This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
# ticks per second?
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] # ticks per second?
- From: Andreas dot Karlsson at combitechsystems dot com
- Date: Wed, 30 Aug 2000 16:44:12 +0200
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?