Other Parts Discussed in Thread: Z-STACK
Hello,
I am using osal_GetSystemClock() function for a blocking timer in a while loop below is my code
osalTimeUpdate();
start_time = osal_GetSystemClock();
while(20000 >= stop_time )
{
osalTimeUpdate();
stop_time = osal_GetSystemClock();
stop_time -= start_time;
}
Here i want to achieve a blocking time of 20 seconds but actually i am getting 12 seconds time when i run a stopwatch using debug points before and after this code.
what can be the issue?
Regards,
Akshay