Hello,
I'm using CC2430 and Z-Stack 1.4.3-1.2.1.
When I try to calculate the time my program spend,I use the OSAL API:osal_GetSystemClock(),
But it seem to me that the clock value doesn't refresh.
Code is listed as follow,and LCD gives the same value of Time_Tick_Begin and Time_Tick_End:
Time_Tick_Begin = osal_GetSystemClock();
halWaitMs(100);
Time_Tick_End = osal_GetSystemClock();
HalLcdWriteValue( Time_Tick_Begin, 10, HAL_LCD_LINE_2 );
HalLcdWriteValue( Time_Tick_End, 10, HAL_LCD_LINE_3 );
Hope somebody can help me.
Thank you.
Peter