From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Michał Oleńczuk Cc: ecos-discuss@sourceware.cygnus.com Subject: RE: [ECOS] clock resolution Date: Mon, 23 Apr 2001 05:50:00 -0000 Message-id: References: <014701c0cbfa$f80f7900$1e00a8c0@OLENCZUK> X-SW-Source: 2001-04/msg00303.html On 23-Apr-2001 Micha³ Oleñczuk wrote: > Hi, > I am beginner in eCos programming and I have some problems: > > I want to set real time clock resolution to 1000 ticks/sec (or higher). Is > it available to set it from software using cyg_clock_set_resolution() ? > Setting dividend and divisor in cyg_resolution_t structure gives no effect > (cyg_clock_get_resolution() gives the same before-setting resolution value > =100). > I changed it in eCos ConfigTool, and after calling > cyg_clock_get_resolution() I got my setted resolution resolution, but some > function like cyg_thread_delay() or alarm functions work the same as with > default resolution value. How do you mean "worked the same"? cyg_thread_delay() takes a number of 'ticks' as it's argument, so the only way to see if the value changes is by using some outside observation (measure against a wall clock, for example). > > How to get 1000 or more ticks for a second ???? What platform are you using?