Related to system clock rate



Hi,

I have a question related to system clock. The system clock
rate on my board is set to 50 by using the sysClkRateSet(50)
function.
After this if I call taskDelay(50), my task gets waku up
exactly after 1 sec but if I call taskDelay(60 * 50), my task gets
wakeup few seconds before the 1 minuite:

o/p of one second delay
-----------------------------------

tick value : 50
Before sleeping : 09/08/2008 14:07:58.313208230
After sleeping : 09/08/2008 14:07:59.313208230

Before sleeping : 09/08/2008 14:07:59.313208230
After sleeping : 09/08/2008 14:08:00.313208230

Before sleeping : 09/08/2008 14:08:00.313208230
After sleeping : 09/08/2008 14:08:01.313208230

o/p of one minute delay
----------------------------------

tick value : 50
sleeping time : 3000

Before sleeping : 11/08/2008 17:40:26.332555930
After sleeping : 11/08/2008 17:41:26.312539720

Before sleeping : 11/08/2008 17:41:26.312539720
After sleeping : 11/08/2008 17:42:26.312540670


Please help why taskDelay(60 * 50) is waking up my task few
nanoseconds before the actual 1 min. How can I achive the required
granualarity.

Thanks,
Naresh.
.



Relevant Pages

  • Re: GetTickCount()/timeGetTime across processes
    ... conversion does not depend on the caller. ... > maybe that call adjusts the tick count in some way and that adjustment ... timeBeginPEriodwill increase the frequence of the system clock, ... > definition for the function that the tick count value can't be correlated ...
    (microsoft.public.win32.programmer.kernel)
  • Calendars
    ... Am I correct in saying that for the UK I need to tick Daylight savings in ... the system clock on the clients and also tick the daylight savings option in ... If I tick both the system clock and Outlook, then all postings are 1 hour ...
    (microsoft.public.windows.server.sbs)